opt subtitle "HI-TECH Software Omniscient Code Generator (Lite mode) build 7503"

opt pagewidth 120

	opt lm

	processor	16LF1827
clrc	macro
	bcf	3,0
	endm
clrz	macro
	bcf	3,2
	endm
setc	macro
	bsf	3,0
	endm
setz	macro
	bsf	3,2
	endm
skipc	macro
	btfss	3,0
	endm
skipz	macro
	btfss	3,2
	endm
skipnc	macro
	btfsc	3,0
	endm
skipnz	macro
	btfsc	3,2
	endm
indf	equ	0
indf0	equ	0
indf1	equ	1
pc	equ	2
pcl	equ	2
status	equ	3
fsr0l	equ	4
fsr0h	equ	5
fsr1l	equ	6
fsr1h	equ	7
bsr	equ	8
wreg	equ	9
intcon	equ	11
c	equ	1
z	equ	0
pclath	equ	10
# 6 "D:\SVN\Pruebav1.1\seccionador\trunk\main.c"
	psect config,class=CONFIG,delta=2 ;#
# 6 "D:\SVN\Pruebav1.1\seccionador\trunk\main.c"
	dw 0xFFE7 & 0xFFFF & 0xFFFF & 0xFF7F & 0xFEFF & 0xF9FF & 0xFFFF & 0xEFFF & 0xDFFF & 0xFFFC & 0xFFFF & 0xFEFF & 0xFDFF & 0xDFFF ;#
	FNCALL	_main,_Inicializacion
	FNCALL	_main,_GestionADC
	FNCALL	_main,_ComprobacionValor
	FNCALL	_main,_MaqEstados
	FNCALL	_ComprobacionValor,_ConexionInductancia
	FNCALL	_GestionADC,_ADC
	FNCALL	_GestionADC,_ValorAbsoluto
	FNCALL	_GestionADC,_GainConversion
	FNCALL	_GestionADC,_Valor4
	FNCALL	_GestionADC,_SelectGain
	FNCALL	_ConexionInductancia,_ValorMedio
	FNCALL	_ConexionInductancia,_Inductancia
	FNCALL	_SelectGain,_SetGain
	FNCALL	_MaqEstados,_SetEstado
	FNCALL	_Inicializacion,_Init_Config
	FNCALL	_Inicializacion,_Init_IO
	FNCALL	_Inicializacion,_Init_FVR
	FNCALL	_Inicializacion,_Init_ADC
	FNCALL	_Inicializacion,_DAC
	FNCALL	_Inicializacion,_Init_SPI
	FNCALL	_Inicializacion,_SelectIntensidad
	FNCALL	_Inicializacion,_SelectReenganches
	FNCALL	_Inicializacion,_SetEstado
	FNCALL	_SetGain,_spi_out
	FNCALL	_ValorMedio,___awdiv
	FNROOT	_main
	global	_j_seg
	global	_p_seg
	global	_Table
psect	idataBANK0,class=CODE,space=0,delta=2
global __pidataBANK0
__pidataBANK0:
	file	"D:\SVN\Pruebav1.1\seccionador\trunk\ADC.c"
	line	6

;initializer for _j_seg
	retlw	01h
	retlw	0


;initializer for _p_seg
	retlw	01h
	retlw	0

psect	idataBANK2,class=CODE,space=0,delta=2
global __pidataBANK2
__pidataBANK2:
	file	"D:\SVN\Pruebav1.1\seccionador\trunk\main.c"
	line	20

;initializer for _Table
	retlw	08h
	retlw	0

	retlw	015h
	retlw	0

	retlw	022h
	retlw	0

	retlw	02Fh
	retlw	0

	retlw	03Ch
	retlw	0

	retlw	049h
	retlw	0

	retlw	056h
	retlw	0

	retlw	063h
	retlw	0

	retlw	070h
	retlw	0

	retlw	07Dh
	retlw	0

	retlw	08Ah
	retlw	0

	retlw	096h
	retlw	0

	retlw	0A3h
	retlw	0

	retlw	0B0h
	retlw	0

	retlw	0BDh
	retlw	0

	retlw	0C8h
	retlw	0

	retlw	010h
	retlw	0

	retlw	010h
	retlw	0

	retlw	010h
	retlw	0

	retlw	010h
	retlw	0

	retlw	04h
	retlw	0

	retlw	04h
	retlw	0

	retlw	04h
	retlw	0

	retlw	04h
	retlw	0

	retlw	02h
	retlw	0

	retlw	02h
	retlw	0

	retlw	02h
	retlw	0

	retlw	02h
	retlw	0

	retlw	01h
	retlw	0

	retlw	01h
	retlw	0

	retlw	01h
	retlw	0

	retlw	01h
	retlw	0

	global	_t
	global	_ADCValue
	global	_ganancia
	global	_i
	global	_j
	global	_milisegundo
	global	_msabrir
	global	_prx_ganancia
	global	_reenganches
	global	_segundo
	global	_zeros
	global	_s
	global	_MaxGanancia
psect	nvBANK0,class=BANK0,space=1
global __pnvBANK0
__pnvBANK0:
_MaxGanancia:
       ds      2

	global	_MaxIntensidad
_MaxIntensidad:
       ds      2

	global	_MaxReenganches
_MaxReenganches:
       ds      2

	global	_estado
_estado:
       ds      2

	global	_PIR4bits
_PIR4bits	set	20
	global	_GIE
_GIE	set	95
	global	_RA3
_RA3	set	99
	global	_RA4
_RA4	set	100
	global	_RB0
_RB0	set	104
	global	_RB1
_RB1	set	105
	global	_RB2
_RB2	set	106
	global	_RB3
_RB3	set	107
	global	_ADRES
_ADRES	set	155
	global	_ADCON0bits
_ADCON0bits	set	157
	global	_ADCON1bits
_ADCON1bits	set	158
	global	_OSCCONbits
_OSCCONbits	set	153
	global	_PIE4bits
_PIE4bits	set	148
	global	_TRISA
_TRISA	set	140
	global	_TRISB
_TRISB	set	141
	global	_WDTCONbits
_WDTCONbits	set	151
	global	_ADGO
_ADGO	set	1257
	global	_ADON
_ADON	set	1256
	global	_DACCON0bits
_DACCON0bits	set	280
	global	_DACCON1bits
_DACCON1bits	set	281
	global	_FVRCONbits
_FVRCONbits	set	279
	global	_LATA7
_LATA7	set	2151
	global	_LATB4
_LATB4	set	2156
	global	_ANSELB
_ANSELB	set	397
	global	_ANSA3
_ANSA3	set	3171
	global	_ANSA4
_ANSA4	set	3172
	global	_SSP2BUF
_SSP2BUF	set	537
	global	_SSP2CON1bits
_SSP2CON1bits	set	541
	global	_SSP2STATbits
_SSP2STATbits	set	540
	file	"Pruebav1.0.as"
	line	#
psect cinit,class=CODE,delta=2
global start_initialization
start_initialization:

psect	bssBANK0,class=BANK0,space=1
global __pbssBANK0
__pbssBANK0:
_t:
       ds      8

_ADCValue:
       ds      2

_ganancia:
       ds      2

_i:
       ds      2

_j:
       ds      2

_milisegundo:
       ds      2

_msabrir:
       ds      2

_prx_ganancia:
       ds      2

_reenganches:
       ds      2

_segundo:
       ds      2

_zeros:
       ds      2

psect	dataBANK0,class=BANK0,space=1
global __pdataBANK0
__pdataBANK0:
	file	"D:\SVN\Pruebav1.1\seccionador\trunk\ADC.c"
	line	6
_j_seg:
       ds      2

psect	dataBANK0
	file	"D:\SVN\Pruebav1.1\seccionador\trunk\ADC.c"
_p_seg:
       ds      2

psect	bssBANK1,class=BANK1,space=1
global __pbssBANK1
__pbssBANK1:
_s:
       ds      40

psect	dataBANK2,class=BANK2,space=1
global __pdataBANK2
__pdataBANK2:
	file	"D:\SVN\Pruebav1.1\seccionador\trunk\main.c"
	line	20
_Table:
       ds      64

psect clrtext,class=CODE,delta=2
global clear_ram
;	Called with FSR0 containing the base address, and
;	WREG with the size to clear
clear_ram:
	clrwdt			;clear the watchdog before getting into this loop
clrloop:
	clrf	indf0		;clear RAM location pointed to by FSR
	addfsr	0,1
	decfsz wreg		;Have we reached the end of clearing yet?
	goto clrloop	;have we reached the end yet?
	retlw	0		;all done for this memory range, return
; Clear objects allocated to BANK0
psect cinit,class=CODE,delta=2
	global __pbssBANK0
	movlw	low(__pbssBANK0)
	movwf	fsr0l
	movlw	high(__pbssBANK0)
	movwf	fsr0h
	movlw	01Ch
	fcall	clear_ram
; Clear objects allocated to BANK1
psect cinit,class=CODE,delta=2
	global __pbssBANK1
	movlw	low(__pbssBANK1)
	movwf	fsr0l
	movlw	high(__pbssBANK1)
	movwf	fsr0h
	movlw	028h
	fcall	clear_ram
psect inittext,class=CODE,delta=2
global init_ram,btemp
init_ram:
	movwf btemp,f
initloop:
	moviw fsr0++
	movwi fsr1++
	decfsz btemp
	goto initloop
	retlw 0
; Initialize objects allocated to BANK0
	global __pidataBANK0,__pdataBANK0
psect cinit,class=CODE,delta=2
	movlw low(__pidataBANK0)
	movwf fsr0l
	movlw high(__pidataBANK0)|80h
	movwf fsr0h
	movlw low(__pdataBANK0)
	movwf fsr1l
	movlw high(__pdataBANK0)
	movwf fsr1h
	movlw 04h
	fcall init_ram
; Initialize objects allocated to BANK2
	global __pidataBANK2,__pdataBANK2
psect cinit,class=CODE,delta=2
	movlw low(__pidataBANK2)
	movwf fsr0l
	movlw high(__pidataBANK2)|80h
	movwf fsr0h
	movlw low(__pdataBANK2)
	movwf fsr1l
	movlw high(__pdataBANK2)
	movwf fsr1h
	movlw 040h
	fcall init_ram
psect cinit,class=CODE,delta=2
global end_of_initialization

;End of C runtime variable initialization code

end_of_initialization:
movlb 0
ljmp _main	;jump to C main() function
psect	cstackCOMMON,class=COMMON,space=1
global __pcstackCOMMON
__pcstackCOMMON:
	global	?_Inicializacion
?_Inicializacion:	; 0 bytes @ 0x0
	global	?_MaqEstados
?_MaqEstados:	; 0 bytes @ 0x0
	global	?_Init_SPI
?_Init_SPI:	; 0 bytes @ 0x0
	global	?_SetEstado
?_SetEstado:	; 0 bytes @ 0x0
	global	?_Init_ADC
?_Init_ADC:	; 0 bytes @ 0x0
	global	??_Init_ADC
??_Init_ADC:	; 0 bytes @ 0x0
	global	?_Init_Config
?_Init_Config:	; 0 bytes @ 0x0
	global	??_Init_Config
??_Init_Config:	; 0 bytes @ 0x0
	global	?_Init_IO
?_Init_IO:	; 0 bytes @ 0x0
	global	??_Init_IO
??_Init_IO:	; 0 bytes @ 0x0
	global	?_Init_FVR
?_Init_FVR:	; 0 bytes @ 0x0
	global	??_Init_FVR
??_Init_FVR:	; 0 bytes @ 0x0
	global	?_DAC
?_DAC:	; 0 bytes @ 0x0
	global	??_DAC
??_DAC:	; 0 bytes @ 0x0
	global	?_main
?_main:	; 0 bytes @ 0x0
	global	?_ADC
?_ADC:	; 2 bytes @ 0x0
	global	?_ValorAbsoluto
?_ValorAbsoluto:	; 2 bytes @ 0x0
	global	?_GainConversion
?_GainConversion:	; 2 bytes @ 0x0
	global	?_Valor4
?_Valor4:	; 2 bytes @ 0x0
	global	?_Inductancia
?_Inductancia:	; 2 bytes @ 0x0
	global	?_SelectIntensidad
?_SelectIntensidad:	; 2 bytes @ 0x0
	global	?_SelectReenganches
?_SelectReenganches:	; 2 bytes @ 0x0
	global	?_spi_out
?_spi_out:	; 2 bytes @ 0x0
	global	?___awdiv
?___awdiv:	; 2 bytes @ 0x0
	global	ValorAbsoluto@valorADC
ValorAbsoluto@valorADC:	; 2 bytes @ 0x0
	global	GainConversion@a
GainConversion@a:	; 2 bytes @ 0x0
	global	Valor4@result
Valor4@result:	; 2 bytes @ 0x0
	global	Inductancia@ADCResultado
Inductancia@ADCResultado:	; 2 bytes @ 0x0
	global	SetEstado@num
SetEstado@num:	; 2 bytes @ 0x0
	global	Init_SPI@cke
Init_SPI@cke:	; 2 bytes @ 0x0
	global	spi_out@send
spi_out@send:	; 2 bytes @ 0x0
	global	___awdiv@divisor
___awdiv@divisor:	; 2 bytes @ 0x0
	ds	2
	global	?_SetGain
?_SetGain:	; 0 bytes @ 0x2
	global	??_MaqEstados
??_MaqEstados:	; 0 bytes @ 0x2
	global	??_SetEstado
??_SetEstado:	; 0 bytes @ 0x2
	global	??_ADC
??_ADC:	; 0 bytes @ 0x2
	global	??_ValorAbsoluto
??_ValorAbsoluto:	; 0 bytes @ 0x2
	global	??_Valor4
??_Valor4:	; 0 bytes @ 0x2
	global	??_Inductancia
??_Inductancia:	; 0 bytes @ 0x2
	global	??_SelectIntensidad
??_SelectIntensidad:	; 0 bytes @ 0x2
	global	??_SelectReenganches
??_SelectReenganches:	; 0 bytes @ 0x2
	global	??_spi_out
??_spi_out:	; 0 bytes @ 0x2
	global	ADC@result
ADC@result:	; 2 bytes @ 0x2
	global	GainConversion@ganancia
GainConversion@ganancia:	; 2 bytes @ 0x2
	global	Init_SPI@ckp
Init_SPI@ckp:	; 2 bytes @ 0x2
	global	SetGain@gain
SetGain@gain:	; 2 bytes @ 0x2
	global	___awdiv@dividend
___awdiv@dividend:	; 2 bytes @ 0x2
	ds	1
	global	MaqEstados@linea
MaqEstados@linea:	; 1 bytes @ 0x3
	ds	1
	global	??_SetGain
??_SetGain:	; 0 bytes @ 0x4
	global	??_Init_SPI
??_Init_SPI:	; 0 bytes @ 0x4
	global	??_GainConversion
??_GainConversion:	; 0 bytes @ 0x4
	global	??___awdiv
??___awdiv:	; 0 bytes @ 0x4
	global	?_SelectGain
?_SelectGain:	; 2 bytes @ 0x4
	global	Valor4@suma
Valor4@suma:	; 2 bytes @ 0x4
	global	SelectGain@result
SelectGain@result:	; 2 bytes @ 0x4
	global	SelectReenganches@a0
SelectReenganches@a0:	; 2 bytes @ 0x4
	ds	1
	global	___awdiv@counter
___awdiv@counter:	; 1 bytes @ 0x5
	ds	1
	global	___awdiv@sign
___awdiv@sign:	; 1 bytes @ 0x6
	global	Valor4@i
Valor4@i:	; 2 bytes @ 0x6
	global	SelectGain@ganancia
SelectGain@ganancia:	; 2 bytes @ 0x6
	global	SelectReenganches@a1
SelectReenganches@a1:	; 2 bytes @ 0x6
	ds	1
	global	___awdiv@quotient
___awdiv@quotient:	; 2 bytes @ 0x7
	ds	1
	global	SelectGain@MaxGanancia
SelectGain@MaxGanancia:	; 2 bytes @ 0x8
	global	SelectReenganches@posicion
SelectReenganches@posicion:	; 2 bytes @ 0x8
	ds	1
	global	?_ValorMedio
?_ValorMedio:	; 2 bytes @ 0x9
	global	ValorMedio@result
ValorMedio@result:	; 2 bytes @ 0x9
	ds	1
	global	??_Inicializacion
??_Inicializacion:	; 0 bytes @ 0xA
	global	??_SelectGain
??_SelectGain:	; 0 bytes @ 0xA
	global	SelectGain@prx_ganancia
SelectGain@prx_ganancia:	; 2 bytes @ 0xA
	ds	1
	global	??_ValorMedio
??_ValorMedio:	; 0 bytes @ 0xB
	ds	1
	global	?_GestionADC
?_GestionADC:	; 2 bytes @ 0xC
	ds	1
	global	??_ComprobacionValor
??_ComprobacionValor:	; 0 bytes @ 0xD
	global	??_ConexionInductancia
??_ConexionInductancia:	; 0 bytes @ 0xD
	ds	1
	global	??_GestionADC
??_GestionADC:	; 0 bytes @ 0xE
psect	cstackBANK0,class=BANK0,space=1
global __pcstackBANK0
__pcstackBANK0:
	global	ValorMedio@suma
ValorMedio@suma:	; 2 bytes @ 0x0
	global	SelectIntensidad@b0
SelectIntensidad@b0:	; 2 bytes @ 0x0
	global	GestionADC@ADCResult
GestionADC@ADCResult:	; 2 bytes @ 0x0
	ds	2
	global	ValorMedio@j
ValorMedio@j:	; 2 bytes @ 0x2
	global	SelectIntensidad@b1
SelectIntensidad@b1:	; 2 bytes @ 0x2
	global	GestionADC@ADCAbsoluto
GestionADC@ADCAbsoluto:	; 2 bytes @ 0x2
	ds	2
	global	?_ConexionInductancia
?_ConexionInductancia:	; 2 bytes @ 0x4
	global	SelectIntensidad@b2
SelectIntensidad@b2:	; 2 bytes @ 0x4
	global	GestionADC@ADCGain
GestionADC@ADCGain:	; 2 bytes @ 0x4
	ds	2
	global	SelectIntensidad@b3
SelectIntensidad@b3:	; 2 bytes @ 0x6
	global	ConexionInductancia@conexion
ConexionInductancia@conexion:	; 2 bytes @ 0x6
	ds	2
	global	SelectIntensidad@posicion
SelectIntensidad@posicion:	; 2 bytes @ 0x8
	global	ConexionInductancia@ADCMedio
ConexionInductancia@ADCMedio:	; 2 bytes @ 0x8
	ds	2
	global	?_ComprobacionValor
?_ComprobacionValor:	; 1 bytes @ 0xA
	global	ComprobacionValor@Lectura
ComprobacionValor@Lectura:	; 2 bytes @ 0xA
	ds	2
	global	ComprobacionValor@linea
ComprobacionValor@linea:	; 1 bytes @ 0xC
	ds	1
	global	??_main
??_main:	; 0 bytes @ 0xD
	ds	1
	global	main@resultado
main@resultado:	; 2 bytes @ 0xE
	ds	2
	global	main@linea
main@linea:	; 1 bytes @ 0x10
	ds	1
;;Data sizes: Strings 0, constant 0, data 68, bss 68, persistent 8 stack 0
;;Auto spaces:   Size  Autos    Used
;; COMMON          14     14      14
;; BANK0           80     17      57
;; BANK1           80      0      40
;; BANK2           80      0      64
;; BANK3           80      0       0
;; BANK4           48      0       0

;;
;; Pointer list with targets:

;; ?_spi_out	int  size(1) Largest target is 0
;;
;; ?_ConexionInductancia	int  size(1) Largest target is 0
;;
;; ?_GestionADC	int  size(1) Largest target is 0
;;
;; ?_SelectReenganches	int  size(1) Largest target is 0
;;
;; ?_SelectIntensidad	int  size(1) Largest target is 0
;;
;; ?_SelectGain	int  size(1) Largest target is 0
;;
;; ?_Valor4	int  size(1) Largest target is 0
;;
;; ?_GainConversion	int  size(1) Largest target is 0
;;
;; ?_ValorAbsoluto	int  size(1) Largest target is 0
;;
;; ?_ValorMedio	int  size(1) Largest target is 0
;;
;; ?___awdiv	int  size(1) Largest target is 0
;;
;; ?_ADC	int  size(1) Largest target is 0
;;


;;
;; Critical Paths under _main in COMMON
;;
;;   _main->_GestionADC
;;   _main->_ComprobacionValor
;;   _GestionADC->_SelectGain
;;   _ConexionInductancia->_ValorMedio
;;   _SelectGain->_SetGain
;;   _MaqEstados->_SetEstado
;;   _Inicializacion->_SelectReenganches
;;   _SetGain->_spi_out
;;   _ValorMedio->___awdiv
;;
;; Critical Paths under _main in BANK0
;;
;;   _main->_ComprobacionValor
;;   _ComprobacionValor->_ConexionInductancia
;;   _ConexionInductancia->_ValorMedio
;;   _Inicializacion->_SelectIntensidad
;;
;; Critical Paths under _main in BANK1
;;
;;   None.
;;
;; Critical Paths under _main in BANK2
;;
;;   None.
;;
;; Critical Paths under _main in BANK3
;;
;;   None.
;;
;; Critical Paths under _main in BANK4
;;
;;   None.

;;
;;Main: autosize = 0, tempsize = 1, incstack = 0, save=0
;;

;;
;;Call Graph Tables:
;;
;; ---------------------------------------------------------------------------------
;; (Depth) Function   	        Calls       Base Space   Used Autos Params    Refs
;; ---------------------------------------------------------------------------------
;; (0) _main                                                 4     4      0    1861
;;                                             13 BANK0      4     4      0
;;                     _Inicializacion
;;                         _GestionADC
;;                  _ComprobacionValor
;;                         _MaqEstados
;; ---------------------------------------------------------------------------------
;; (1) _ComprobacionValor                                    4     2      2     599
;;                                             13 COMMON     1     1      0
;;                                             10 BANK0      3     1      2
;;                _ConexionInductancia
;; ---------------------------------------------------------------------------------
;; (1) _GestionADC                                          10     8      2     810
;;                                             12 COMMON     2     0      2
;;                                              0 BANK0      6     6      0
;;                                _ADC
;;                      _ValorAbsoluto
;;                     _GainConversion
;;                             _Valor4
;;                         _SelectGain
;; ---------------------------------------------------------------------------------
;; (2) _ConexionInductancia                                  6     4      2     530
;;                                              4 BANK0      6     4      2
;;                         _ValorMedio
;;                        _Inductancia
;; ---------------------------------------------------------------------------------
;; (2) _SelectGain                                           8     2      6     244
;;                                              4 COMMON     8     2      6
;;                            _SetGain
;; ---------------------------------------------------------------------------------
;; (1) _MaqEstados                                           2     2      0     154
;;                                              2 COMMON     2     2      0
;;                          _SetEstado
;; ---------------------------------------------------------------------------------
;; (1) _Inicializacion                                       0     0      0     252
;;                        _Init_Config
;;                            _Init_IO
;;                           _Init_FVR
;;                           _Init_ADC
;;                                _DAC
;;                           _Init_SPI
;;                   _SelectIntensidad
;;                  _SelectReenganches
;;                          _SetEstado
;; ---------------------------------------------------------------------------------
;; (3) _SetGain                                              2     0      2      44
;;                                              2 COMMON     2     0      2
;;                            _spi_out
;; ---------------------------------------------------------------------------------
;; (3) _ValorMedio                                           8     6      2     438
;;                                              9 COMMON     4     2      2
;;                                              0 BANK0      4     4      0
;;                            ___awdiv
;; ---------------------------------------------------------------------------------
;; (4) ___awdiv                                              9     5      4     300
;;                                              0 COMMON     9     5      4
;; ---------------------------------------------------------------------------------
;; (4) _spi_out                                              2     0      2      22
;;                                              0 COMMON     2     0      2
;; ---------------------------------------------------------------------------------
;; (2) _SetEstado                                            2     0      2      22
;;                                              0 COMMON     2     0      2
;; ---------------------------------------------------------------------------------
;; (2) _Init_SPI                                             5     1      4      44
;;                                              0 COMMON     5     1      4
;; ---------------------------------------------------------------------------------
;; (2) _DAC                                                  0     0      0       0
;; ---------------------------------------------------------------------------------
;; (2) _SelectReenganches                                   10     8      2      70
;;                                              0 COMMON    10     8      2
;; ---------------------------------------------------------------------------------
;; (2) _SelectIntensidad                                    16    14      2     116
;;                                              0 COMMON     6     4      2
;;                                              0 BANK0     10    10      0
;; ---------------------------------------------------------------------------------
;; (2) _Init_FVR                                             0     0      0       0
;; ---------------------------------------------------------------------------------
;; (2) _Init_IO                                              0     0      0       0
;; ---------------------------------------------------------------------------------
;; (2) _Init_Config                                          0     0      0       0
;; ---------------------------------------------------------------------------------
;; (3) _Inductancia                                          2     0      2      44
;;                                              0 COMMON     2     0      2
;; ---------------------------------------------------------------------------------
;; (2) _Valor4                                               8     6      2     138
;;                                              0 COMMON     8     6      2
;; ---------------------------------------------------------------------------------
;; (2) _GainConversion                                       6     2      4     247
;;                                              0 COMMON     6     2      4
;; ---------------------------------------------------------------------------------
;; (2) _ValorAbsoluto                                        4     2      2      67
;;                                              0 COMMON     4     2      2
;; ---------------------------------------------------------------------------------
;; (2) _ADC                                                  4     2      2      23
;;                                              0 COMMON     4     2      2
;; ---------------------------------------------------------------------------------
;; (2) _Init_ADC                                             0     0      0       0
;; ---------------------------------------------------------------------------------
;; Estimated maximum stack depth 4
;; ---------------------------------------------------------------------------------

;; Call Graph Graphs:

;; _main (ROOT)
;;   _Inicializacion
;;     _Init_Config
;;     _Init_IO
;;     _Init_FVR
;;     _Init_ADC
;;     _DAC
;;     _Init_SPI
;;     _SelectIntensidad
;;     _SelectReenganches
;;     _SetEstado
;;   _GestionADC
;;     _ADC
;;     _ValorAbsoluto
;;     _GainConversion
;;     _Valor4
;;     _SelectGain
;;       _SetGain
;;         _spi_out
;;   _ComprobacionValor
;;     _ConexionInductancia
;;       _ValorMedio
;;         ___awdiv
;;       _Inductancia
;;   _MaqEstados
;;     _SetEstado
;;

;; Address spaces:

;;Name               Size   Autos  Total    Cost      Usage
;;BIGRAM             170      0       0       0        0.0%
;;EEDATA             100      0       0       0        0.0%
;;NULL                 0      0       0       0        0.0%
;;CODE                 0      0       0       0        0.0%
;;BITCOMMON            E      0       0       1        0.0%
;;BITSFR0              0      0       0       1        0.0%
;;SFR0                 0      0       0       1        0.0%
;;COMMON               E      E       E       2      100.0%
;;BITSFR1              0      0       0       2        0.0%
;;SFR1                 0      0       0       2        0.0%
;;BITSFR2              0      0       0       3        0.0%
;;SFR2                 0      0       0       3        0.0%
;;STACK                0      0       4       3        0.0%
;;BITSFR3              0      0       0       4        0.0%
;;SFR3                 0      0       0       4        0.0%
;;ABS                  0      0      AF       4        0.0%
;;BITBANK0            50      0       0       5        0.0%
;;BITSFR4              0      0       0       5        0.0%
;;SFR4                 0      0       0       5        0.0%
;;BANK0               50     11      39       6       71.3%
;;BITSFR5              0      0       0       6        0.0%
;;SFR5                 0      0       0       6        0.0%
;;BITBANK1            50      0       0       7        0.0%
;;BITSFR6              0      0       0       7        0.0%
;;SFR6                 0      0       0       7        0.0%
;;BANK1               50      0      28       8       50.0%
;;BITSFR7              0      0       0       8        0.0%
;;SFR7                 0      0       0       8        0.0%
;;BITBANK2            50      0       0       9        0.0%
;;BITSFR8              0      0       0       9        0.0%
;;SFR8                 0      0       0       9        0.0%
;;BANK2               50      0      40      10       80.0%
;;BITSFR9              0      0       0      10        0.0%
;;SFR9                 0      0       0      10        0.0%
;;BITBANK3            50      0       0      11        0.0%
;;BITSFR10             0      0       0      11        0.0%
;;SFR10                0      0       0      11        0.0%
;;BANK3               50      0       0      12        0.0%
;;BITSFR11             0      0       0      12        0.0%
;;SFR11                0      0       0      12        0.0%
;;BITBANK4            30      0       0      13        0.0%
;;BITSFR12             0      0       0      13        0.0%
;;SFR12                0      0       0      13        0.0%
;;BANK4               30      0       0      14        0.0%
;;BITSFR13             0      0       0      14        0.0%
;;SFR13                0      0       0      14        0.0%
;;BITSFR14             0      0       0      15        0.0%
;;SFR14                0      0       0      15        0.0%
;;DATA                 0      0      B3      15        0.0%
;;BITSFR15             0      0       0      16        0.0%
;;SFR15                0      0       0      16        0.0%
;;BITSFR16             0      0       0      17        0.0%
;;SFR16                0      0       0      17        0.0%
;;BITSFR17             0      0       0      18        0.0%
;;SFR17                0      0       0      18        0.0%
;;BITSFR18             0      0       0      19        0.0%
;;SFR18                0      0       0      19        0.0%
;;BITSFR19             0      0       0      20        0.0%
;;SFR19                0      0       0      20        0.0%
;;BITSFR20             0      0       0      21        0.0%
;;SFR20                0      0       0      21        0.0%
;;BITSFR21             0      0       0      22        0.0%
;;SFR21                0      0       0      22        0.0%
;;BITSFR22             0      0       0      23        0.0%
;;SFR22                0      0       0      23        0.0%
;;BITSFR23             0      0       0      24        0.0%
;;SFR23                0      0       0      24        0.0%
;;BITSFR24             0      0       0      25        0.0%
;;SFR24                0      0       0      25        0.0%
;;BITSFR25             0      0       0      26        0.0%
;;SFR25                0      0       0      26        0.0%
;;BITSFR26             0      0       0      27        0.0%
;;SFR26                0      0       0      27        0.0%
;;BITSFR27             0      0       0      28        0.0%
;;SFR27                0      0       0      28        0.0%
;;BITSFR28             0      0       0      29        0.0%
;;SFR28                0      0       0      29        0.0%
;;BITSFR29             0      0       0      30        0.0%
;;SFR29                0      0       0      30        0.0%
;;BITSFR30             0      0       0      31        0.0%
;;SFR30                0      0       0      31        0.0%
;;BITSFR31             0      0       0      32        0.0%
;;SFR31                0      0       0      32        0.0%

	global	_main
psect	maintext,global,class=CODE,delta=2
global __pmaintext
__pmaintext:

;; *************** function _main *****************
;; Defined at:
;;		line 24 in file "D:\SVN\Pruebav1.1\seccionador\trunk\main.c"
;; Parameters:    Size  Location     Type
;;		None
;; Auto vars:     Size  Location     Type
;;  resultado       2   14[BANK0 ] int 
;;  linea           1   16[BANK0 ] enum E2245
;; Return value:  Size  Location     Type
;;		None               void
;; Registers used:
;;		wreg, fsr0l, fsr0h, fsr1l, fsr1h, status,2, status,0, btemp+1, pclath, cstack
;; Tracked objects:
;;		On entry : 17F/0
;;		On exit  : 0/0
;;		Unchanged: 0/0
;; Data sizes:     COMMON   BANK0   BANK1   BANK2   BANK3   BANK4
;;      Params:         0       0       0       0       0       0
;;      Locals:         0       3       0       0       0       0
;;      Temps:          0       1       0       0       0       0
;;      Totals:         0       4       0       0       0       0
;;Total ram usage:        4 bytes
;; Hardware stack levels required when called:    4
;; This function calls:
;;		_Inicializacion
;;		_GestionADC
;;		_ComprobacionValor
;;		_MaqEstados
;; This function is called by:
;;		Startup code after reset
;; This function uses a non-reentrant model
;;
psect	maintext
	file	"D:\SVN\Pruebav1.1\seccionador\trunk\main.c"
	line	24
	global	__size_of_main
	__size_of_main	equ	__end_of_main-_main
	
_main:	
	opt	stack 12
; Regs used in _main: [allreg]
	line	27
	
l7897:	
;main.c: 25: int resultado;
;main.c: 26: enum estado_linea linea;
;main.c: 27: Inicializacion();
	fcall	_Inicializacion
	goto	l7899
	line	29
;main.c: 29: while(1){
	
l4430:	
	line	30
	
l7899:	
;main.c: 30: resultado = GestionADC();
	fcall	_GestionADC
	movf	(1+(?_GestionADC)),w
	movlb 0	; select bank0
	clrf	(main@resultado+1)
	addwf	(main@resultado+1)
	movf	(0+(?_GestionADC)),w
	clrf	(main@resultado)
	addwf	(main@resultado)

	line	31
	
l7901:	
;main.c: 31: linea = ComprobacionValor (resultado);
	movf	(main@resultado+1),w
	clrf	(?_ComprobacionValor+1)
	addwf	(?_ComprobacionValor+1)
	movf	(main@resultado),w
	clrf	(?_ComprobacionValor)
	addwf	(?_ComprobacionValor)

	fcall	_ComprobacionValor
	movlb 0	; select bank0
	movwf	(??_main+0)+0
	movf	(??_main+0)+0,w
	movwf	(main@linea)
	line	32
	
l7903:	
;main.c: 32: MaqEstados(linea);
	movf	(main@linea),w
	fcall	_MaqEstados
	line	33
	
l7905:	
# 33 "D:\SVN\Pruebav1.1\seccionador\trunk\main.c"
sleep ;#
psect	maintext
	goto	l7899
	line	34
	
l4431:	
	line	29
	goto	l7899
	
l4432:	
	line	35
	
l4433:	
	global	start
	ljmp	start
	opt stack 0
GLOBAL	__end_of_main
	__end_of_main:
;; =============== function _main ends ============

	signat	_main,88
	global	_ComprobacionValor
psect	text570,local,class=CODE,delta=2
global __ptext570
__ptext570:

;; *************** function _ComprobacionValor *****************
;; Defined at:
;;		line 83 in file "D:\SVN\Pruebav1.1\seccionador\trunk\main.c"
;; Parameters:    Size  Location     Type
;;  Lectura         2   10[BANK0 ] int 
;; Auto vars:     Size  Location     Type
;;  linea           1   12[BANK0 ] enum E2245
;; Return value:  Size  Location     Type
;;                  1    wreg      enum E2245
;; Registers used:
;;		wreg, fsr1l, fsr1h, status,2, status,0, btemp+1, pclath, cstack
;; Tracked objects:
;;		On entry : 0/0
;;		On exit  : 0/0
;;		Unchanged: 0/0
;; Data sizes:     COMMON   BANK0   BANK1   BANK2   BANK3   BANK4
;;      Params:         0       2       0       0       0       0
;;      Locals:         0       1       0       0       0       0
;;      Temps:          1       0       0       0       0       0
;;      Totals:         1       3       0       0       0       0
;;Total ram usage:        4 bytes
;; Hardware stack levels used:    1
;; Hardware stack levels required when called:    3
;; This function calls:
;;		_ConexionInductancia
;; This function is called by:
;;		_main
;; This function uses a non-reentrant model
;;
psect	text570
	file	"D:\SVN\Pruebav1.1\seccionador\trunk\main.c"
	line	83
	global	__size_of_ComprobacionValor
	__size_of_ComprobacionValor	equ	__end_of_ComprobacionValor-_ComprobacionValor
	
_ComprobacionValor:	
	opt	stack 12
; Regs used in _ComprobacionValor: [wreg+fsr1l-status,0+btemp+1+pclath+cstack]
	line	86
	
l7855:	
;main.c: 84: enum estado_linea linea;
;main.c: 86: if(milisegundo == 1000)
	movlw	high(03E8h)
	movlb 0	; select bank0
	xorwf	(_milisegundo+1),w
	skipz
	goto	u3065
	movlw	low(03E8h)
	xorwf	(_milisegundo),w
u3065:

	skipz
	goto	u3061
	goto	u3060
u3061:
	goto	l7861
u3060:
	line	88
	
l7857:	
;main.c: 87: {
;main.c: 88: milisegundo = 0;
	clrf	(_milisegundo)
	clrf	(_milisegundo+1)
	line	89
	
l7859:	
;main.c: 89: ++segundo;
	movlw	low(01h)
	addwf	(_segundo),f
	movlw	high(01h)
	addwfc	(_segundo+1),f
	goto	l7861
	line	90
	
l4445:	
	line	92
	
l7861:	
;main.c: 90: }
;main.c: 92: if(segundo >= 10)
	movf	(_segundo+1),w
	xorlw	80h
	movwf	btemp+1
	movlw	(high(0Ah))^80h
	subwf	btemp+1,w
	skipz
	goto	u3075
	movlw	low(0Ah)
	subwf	(_segundo),w
u3075:

	skipc
	goto	u3071
	goto	u3070
u3071:
	goto	l7867
u3070:
	line	94
	
l7863:	
;main.c: 93: {
;main.c: 94: segundo = 0;
	movlb 0	; select bank0
	clrf	(_segundo)
	clrf	(_segundo+1)
	line	95
	
l7865:	
;main.c: 95: linea = NOFALTA;
	movlw	(02h)
	movwf	(??_ComprobacionValor+0)+0
	movf	(??_ComprobacionValor+0)+0,w
	movwf	(ComprobacionValor@linea)
	goto	l7867
	line	96
	
l4446:	
	line	98
	
l7867:	
;main.c: 96: }
;main.c: 98: if(Lectura >= MaxIntensidad && !ConexionInductancia()){
	movlb 0	; select bank0
	movf	(ComprobacionValor@Lectura+1),w
	xorlw	80h
	movwf	(??_ComprobacionValor+0)+0
	movf	(_MaxIntensidad+1),w
	xorlw	80h
	subwf	(??_ComprobacionValor+0)+0,w
	skipz
	goto	u3085
	movf	(_MaxIntensidad),w
	subwf	(ComprobacionValor@Lectura),w
u3085:

	skipc
	goto	u3081
	goto	u3080
u3081:
	goto	l7877
u3080:
	
l7869:	
	fcall	_ConexionInductancia
	movlb 0	; select bank0
	movf	((1+(?_ConexionInductancia))),w
	iorwf	((0+(?_ConexionInductancia))),w
	skipz
	goto	u3091
	goto	u3090
u3091:
	goto	l7877
u3090:
	line	99
	
l7871:	
;main.c: 99: linea = FALTA;
	clrf	(ComprobacionValor@linea)
	bsf	status,0
	rlf	(ComprobacionValor@linea),f
	line	100
	
l7873:	
;main.c: 100: milisegundo = 0;
	clrf	(_milisegundo)
	clrf	(_milisegundo+1)
	line	101
	
l7875:	
;main.c: 101: segundo = 0;
	clrf	(_segundo)
	clrf	(_segundo+1)
	line	102
;main.c: 102: }
	goto	l7879
	line	103
	
l4447:	
	
l7877:	
;main.c: 103: else ++milisegundo;
	movlw	low(01h)
	movlb 0	; select bank0
	addwf	(_milisegundo),f
	movlw	high(01h)
	addwfc	(_milisegundo+1),f
	goto	l7879
	
l4448:	
	line	105
	
l7879:	
;main.c: 105: if(Lectura <= 200 && ganancia == 32) ++msabrir;
	movf	(ComprobacionValor@Lectura+1),w
	xorlw	80h
	movwf	btemp+1
	movlw	(high(0C9h))^80h
	subwf	btemp+1,w
	skipz
	goto	u3105
	movlw	low(0C9h)
	subwf	(ComprobacionValor@Lectura),w
u3105:

	skipnc
	goto	u3101
	goto	u3100
u3101:
	goto	l7885
u3100:
	
l7881:	
	movlw	020h
	movlb 0	; select bank0
	xorwf	(_ganancia),w
	iorwf	(_ganancia+1),w
	skipz
	goto	u3111
	goto	u3110
u3111:
	goto	l7885
u3110:
	
l7883:	
	movlw	low(01h)
	addwf	(_msabrir),f
	movlw	high(01h)
	addwfc	(_msabrir+1),f
	goto	l7887
	line	106
	
l4449:	
	
l7885:	
;main.c: 106: else msabrir = 0;
	movlb 0	; select bank0
	clrf	(_msabrir)
	clrf	(_msabrir+1)
	goto	l7887
	
l4450:	
	line	108
	
l7887:	
;main.c: 108: if(msabrir >= 200){
	movf	(_msabrir+1),w
	xorlw	80h
	movwf	btemp+1
	movlw	(high(0C8h))^80h
	subwf	btemp+1,w
	skipz
	goto	u3125
	movlw	low(0C8h)
	subwf	(_msabrir),w
u3125:

	skipc
	goto	u3121
	goto	u3120
u3121:
	goto	l7893
u3120:
	line	109
	
l7889:	
;main.c: 109: linea = NOLINEA;
	movlb 0	; select bank0
	clrf	(ComprobacionValor@linea)
	line	110
	
l7891:	
;main.c: 110: milisegundo = 0;
	clrf	(_milisegundo)
	clrf	(_milisegundo+1)
	line	111
;main.c: 111: segundo = 0;
	clrf	(_segundo)
	clrf	(_segundo+1)
	line	112
;main.c: 112: msabrir = 0;
	clrf	(_msabrir)
	clrf	(_msabrir+1)
	goto	l7893
	line	113
	
l4451:	
	line	114
	
l7893:	
;main.c: 113: }
;main.c: 114: return linea;
	movlb 0	; select bank0
	movf	(ComprobacionValor@linea),w
	goto	l4452
	
l7895:	
	line	115
	
l4452:	
	return
	opt stack 0
GLOBAL	__end_of_ComprobacionValor
	__end_of_ComprobacionValor:
;; =============== function _ComprobacionValor ends ============

	signat	_ComprobacionValor,4217
	global	_GestionADC
psect	text571,local,class=CODE,delta=2
global __ptext571
__ptext571:

;; *************** function _GestionADC *****************
;; Defined at:
;;		line 58 in file "D:\SVN\Pruebav1.1\seccionador\trunk\main.c"
;; Parameters:    Size  Location     Type
;;		None
;; Auto vars:     Size  Location     Type
;;  ADCGain         2    4[BANK0 ] int 
;;  ADCAbsoluto     2    2[BANK0 ] int 
;;  ADCResult       2    0[BANK0 ] int 
;;  ADCMedio        2    0        int 
;; Return value:  Size  Location     Type
;;                  2   12[COMMON] int 
;; Registers used:
;;		wreg, fsr0l, fsr0h, fsr1l, fsr1h, status,2, status,0, btemp+1, pclath, cstack
;; Tracked objects:
;;		On entry : 0/0
;;		On exit  : 0/0
;;		Unchanged: 0/0
;; Data sizes:     COMMON   BANK0   BANK1   BANK2   BANK3   BANK4
;;      Params:         2       0       0       0       0       0
;;      Locals:         0       6       0       0       0       0
;;      Temps:          0       0       0       0       0       0
;;      Totals:         2       6       0       0       0       0
;;Total ram usage:        8 bytes
;; Hardware stack levels used:    1
;; Hardware stack levels required when called:    3
;; This function calls:
;;		_ADC
;;		_ValorAbsoluto
;;		_GainConversion
;;		_Valor4
;;		_SelectGain
;; This function is called by:
;;		_main
;; This function uses a non-reentrant model
;;
psect	text571
	file	"D:\SVN\Pruebav1.1\seccionador\trunk\main.c"
	line	58
	global	__size_of_GestionADC
	__size_of_GestionADC	equ	__end_of_GestionADC-_GestionADC
	
_GestionADC:	
	opt	stack 12
; Regs used in _GestionADC: [allreg]
	line	62
	
l7839:	
;main.c: 60: int ADCResult, ADCGain, ADCAbsoluto, ADCMedio;
;main.c: 62: ganancia = prx_ganancia;
	movlb 0	; select bank0
	movf	(_prx_ganancia+1),w
	clrf	(_ganancia+1)
	addwf	(_ganancia+1)
	movf	(_prx_ganancia),w
	clrf	(_ganancia)
	addwf	(_ganancia)

	line	64
	
l7841:	
;main.c: 64: ADCValue = ADC();
	fcall	_ADC
	movf	(1+(?_ADC)),w
	movlb 0	; select bank0
	clrf	(_ADCValue+1)
	addwf	(_ADCValue+1)
	movf	(0+(?_ADC)),w
	clrf	(_ADCValue)
	addwf	(_ADCValue)

	line	65
	
l7843:	
;main.c: 65: ADCAbsoluto = ValorAbsoluto (ADCValue);
	movf	(_ADCValue+1),w
	clrf	(?_ValorAbsoluto+1)
	addwf	(?_ValorAbsoluto+1)
	movf	(_ADCValue),w
	clrf	(?_ValorAbsoluto)
	addwf	(?_ValorAbsoluto)

	fcall	_ValorAbsoluto
	movf	(1+(?_ValorAbsoluto)),w
	movlb 0	; select bank0
	clrf	(GestionADC@ADCAbsoluto+1)
	addwf	(GestionADC@ADCAbsoluto+1)
	movf	(0+(?_ValorAbsoluto)),w
	clrf	(GestionADC@ADCAbsoluto)
	addwf	(GestionADC@ADCAbsoluto)

	line	66
	
l7845:	
;main.c: 66: ADCGain = GainConversion(ADCAbsoluto, ganancia);
	movf	(GestionADC@ADCAbsoluto+1),w
	clrf	(?_GainConversion+1)
	addwf	(?_GainConversion+1)
	movf	(GestionADC@ADCAbsoluto),w
	clrf	(?_GainConversion)
	addwf	(?_GainConversion)

	movf	(_ganancia+1),w
	clrf	1+(?_GainConversion)+02h
	addwf	1+(?_GainConversion)+02h
	movf	(_ganancia),w
	clrf	0+(?_GainConversion)+02h
	addwf	0+(?_GainConversion)+02h

	fcall	_GainConversion
	movf	(1+(?_GainConversion)),w
	movlb 0	; select bank0
	clrf	(GestionADC@ADCGain+1)
	addwf	(GestionADC@ADCGain+1)
	movf	(0+(?_GainConversion)),w
	clrf	(GestionADC@ADCGain)
	addwf	(GestionADC@ADCGain)

	line	67
	
l7847:	
;main.c: 67: ADCResult = Valor4 (ADCGain);
	movf	(GestionADC@ADCGain+1),w
	clrf	(?_Valor4+1)
	addwf	(?_Valor4+1)
	movf	(GestionADC@ADCGain),w
	clrf	(?_Valor4)
	addwf	(?_Valor4)

	fcall	_Valor4
	movf	(1+(?_Valor4)),w
	movlb 0	; select bank0
	clrf	(GestionADC@ADCResult+1)
	addwf	(GestionADC@ADCResult+1)
	movf	(0+(?_Valor4)),w
	clrf	(GestionADC@ADCResult)
	addwf	(GestionADC@ADCResult)

	line	68
	
l7849:	
;main.c: 68: prx_ganancia = SelectGain (ADCGain, ganancia, MaxGanancia);
	movf	(GestionADC@ADCGain+1),w
	clrf	(?_SelectGain+1)
	addwf	(?_SelectGain+1)
	movf	(GestionADC@ADCGain),w
	clrf	(?_SelectGain)
	addwf	(?_SelectGain)

	movf	(_ganancia+1),w
	clrf	1+(?_SelectGain)+02h
	addwf	1+(?_SelectGain)+02h
	movf	(_ganancia),w
	clrf	0+(?_SelectGain)+02h
	addwf	0+(?_SelectGain)+02h

	movf	(_MaxGanancia+1),w
	clrf	1+(?_SelectGain)+04h
	addwf	1+(?_SelectGain)+04h
	movf	(_MaxGanancia),w
	clrf	0+(?_SelectGain)+04h
	addwf	0+(?_SelectGain)+04h

	fcall	_SelectGain
	movf	(1+(?_SelectGain)),w
	movlb 0	; select bank0
	clrf	(_prx_ganancia+1)
	addwf	(_prx_ganancia+1)
	movf	(0+(?_SelectGain)),w
	clrf	(_prx_ganancia)
	addwf	(_prx_ganancia)

	line	70
	
l7851:	
;main.c: 70: return ADCResult;
	movf	(GestionADC@ADCResult+1),w
	clrf	(?_GestionADC+1)
	addwf	(?_GestionADC+1)
	movf	(GestionADC@ADCResult),w
	clrf	(?_GestionADC)
	addwf	(?_GestionADC)

	goto	l4439
	
l7853:	
	line	71
	
l4439:	
	return
	opt stack 0
GLOBAL	__end_of_GestionADC
	__end_of_GestionADC:
;; =============== function _GestionADC ends ============

	signat	_GestionADC,90
	global	_ConexionInductancia
psect	text572,local,class=CODE,delta=2
global __ptext572
__ptext572:

;; *************** function _ConexionInductancia *****************
;; Defined at:
;;		line 73 in file "D:\SVN\Pruebav1.1\seccionador\trunk\main.c"
;; Parameters:    Size  Location     Type
;;		None
;; Auto vars:     Size  Location     Type
;;  ADCMedio        2    8[BANK0 ] int 
;;  conexion        2    6[BANK0 ] int 
;; Return value:  Size  Location     Type
;;                  2    4[BANK0 ] int 
;; Registers used:
;;		wreg, fsr1l, fsr1h, status,2, status,0, btemp+1, pclath, cstack
;; Tracked objects:
;;		On entry : 0/0
;;		On exit  : 0/0
;;		Unchanged: 0/0
;; Data sizes:     COMMON   BANK0   BANK1   BANK2   BANK3   BANK4
;;      Params:         0       2       0       0       0       0
;;      Locals:         0       4       0       0       0       0
;;      Temps:          0       0       0       0       0       0
;;      Totals:         0       6       0       0       0       0
;;Total ram usage:        6 bytes
;; Hardware stack levels used:    1
;; Hardware stack levels required when called:    2
;; This function calls:
;;		_ValorMedio
;;		_Inductancia
;; This function is called by:
;;		_ComprobacionValor
;; This function uses a non-reentrant model
;;
psect	text572
	file	"D:\SVN\Pruebav1.1\seccionador\trunk\main.c"
	line	73
	global	__size_of_ConexionInductancia
	__size_of_ConexionInductancia	equ	__end_of_ConexionInductancia-_ConexionInductancia
	
_ConexionInductancia:	
	opt	stack 12
; Regs used in _ConexionInductancia: [wreg+fsr1l-status,0+btemp+1+pclath+cstack]
	line	74
	
l7829:	
;main.c: 74: int conexion = 0;
	movlb 0	; select bank0
	clrf	(ConexionInductancia@conexion)
	clrf	(ConexionInductancia@conexion+1)
	line	75
;main.c: 75: int ADCMedio = 0;
	clrf	(ConexionInductancia@ADCMedio)
	clrf	(ConexionInductancia@ADCMedio+1)
	line	77
	
l7831:	
;main.c: 77: ADCMedio = ValorMedio (ADCValue);
	movf	(_ADCValue+1),w
	clrf	(?_ValorMedio+1)
	addwf	(?_ValorMedio+1)
	movf	(_ADCValue),w
	clrf	(?_ValorMedio)
	addwf	(?_ValorMedio)

	fcall	_ValorMedio
	movf	(1+(?_ValorMedio)),w
	movlb 0	; select bank0
	clrf	(ConexionInductancia@ADCMedio+1)
	addwf	(ConexionInductancia@ADCMedio+1)
	movf	(0+(?_ValorMedio)),w
	clrf	(ConexionInductancia@ADCMedio)
	addwf	(ConexionInductancia@ADCMedio)

	line	78
	
l7833:	
;main.c: 78: conexion = Inductancia(ADCMedio);
	movf	(ConexionInductancia@ADCMedio+1),w
	clrf	(?_Inductancia+1)
	addwf	(?_Inductancia+1)
	movf	(ConexionInductancia@ADCMedio),w
	clrf	(?_Inductancia)
	addwf	(?_Inductancia)

	fcall	_Inductancia
	movf	(1+(?_Inductancia)),w
	movlb 0	; select bank0
	clrf	(ConexionInductancia@conexion+1)
	addwf	(ConexionInductancia@conexion+1)
	movf	(0+(?_Inductancia)),w
	clrf	(ConexionInductancia@conexion)
	addwf	(ConexionInductancia@conexion)

	line	80
	
l7835:	
;main.c: 80: return conexion;
	movf	(ConexionInductancia@conexion+1),w
	clrf	(?_ConexionInductancia+1)
	addwf	(?_ConexionInductancia+1)
	movf	(ConexionInductancia@conexion),w
	clrf	(?_ConexionInductancia)
	addwf	(?_ConexionInductancia)

	goto	l4442
	
l7837:	
	line	81
	
l4442:	
	return
	opt stack 0
GLOBAL	__end_of_ConexionInductancia
	__end_of_ConexionInductancia:
;; =============== function _ConexionInductancia ends ============

	signat	_ConexionInductancia,90
	global	_SelectGain
psect	text573,local,class=CODE,delta=2
global __ptext573
__ptext573:

;; *************** function _SelectGain *****************
;; Defined at:
;;		line 166 in file "D:\SVN\Pruebav1.1\seccionador\trunk\ADC.c"
;; Parameters:    Size  Location     Type
;;  result          2    4[COMMON] int 
;;  ganancia        2    6[COMMON] int 
;;  MaxGanancia     2    8[COMMON] int 
;; Auto vars:     Size  Location     Type
;;  prx_ganancia    2   10[COMMON] int 
;; Return value:  Size  Location     Type
;;                  2    4[COMMON] int 
;; Registers used:
;;		wreg, fsr0l, fsr0h, status,2, status,0, btemp+1, pclath, cstack
;; Tracked objects:
;;		On entry : 0/0
;;		On exit  : 0/0
;;		Unchanged: 0/0
;; Data sizes:     COMMON   BANK0   BANK1   BANK2   BANK3   BANK4
;;      Params:         6       0       0       0       0       0
;;      Locals:         2       0       0       0       0       0
;;      Temps:          0       0       0       0       0       0
;;      Totals:         8       0       0       0       0       0
;;Total ram usage:        8 bytes
;; Hardware stack levels used:    1
;; Hardware stack levels required when called:    2
;; This function calls:
;;		_SetGain
;; This function is called by:
;;		_GestionADC
;; This function uses a non-reentrant model
;;
psect	text573
	file	"D:\SVN\Pruebav1.1\seccionador\trunk\ADC.c"
	line	166
	global	__size_of_SelectGain
	__size_of_SelectGain	equ	__end_of_SelectGain-_SelectGain
	
_SelectGain:	
	opt	stack 12
; Regs used in _SelectGain: [wreg-fsr0h+status,2+status,0+btemp+1+pclath+cstack]
	line	169
	
l7803:	
;ADC.c: 167: int prx_ganancia;
;ADC.c: 169: if(result >= 0b0111111111 && result <= 0b1000000001){
	movf	(SelectGain@result+1),w
	xorlw	80h
	movwf	btemp+1
	movlw	(high(01FFh))^80h
	subwf	btemp+1,w
	skipz
	goto	u3005
	movlw	low(01FFh)
	subwf	(SelectGain@result),w
u3005:

	skipc
	goto	u3001
	goto	u3000
u3001:
	goto	l7815
u3000:
	
l7805:	
	movf	(SelectGain@result+1),w
	xorlw	80h
	movwf	btemp+1
	movlw	(high(0202h))^80h
	subwf	btemp+1,w
	skipz
	goto	u3015
	movlw	low(0202h)
	subwf	(SelectGain@result),w
u3015:

	skipnc
	goto	u3011
	goto	u3010
u3011:
	goto	l7815
u3010:
	line	170
	
l7807:	
;ADC.c: 170: zeros++;
	movlw	low(01h)
	movlb 0	; select bank0
	addwf	(_zeros),f
	movlw	high(01h)
	addwfc	(_zeros+1),f
	line	171
;ADC.c: 171: if(zeros == 3 && ganancia == MaxGanancia){
	movlw	03h
	xorwf	(_zeros),w
	iorwf	(_zeros+1),w
	skipz
	goto	u3021
	goto	u3020
u3021:
	goto	l7817
u3020:
	
l7809:	
	movf	(SelectGain@MaxGanancia+1),w
	xorwf	(SelectGain@ganancia+1),w
	skipz
	goto	u3035
	movf	(SelectGain@MaxGanancia),w
	xorwf	(SelectGain@ganancia),w
u3035:

	skipz
	goto	u3031
	goto	u3030
u3031:
	goto	l7817
u3030:
	line	172
	
l7811:	
;ADC.c: 172: prx_ganancia = 32;
	movlw	low(020h)
	movwf	(SelectGain@prx_ganancia)
	movlw	high(020h)
	movwf	((SelectGain@prx_ganancia))+1
	line	173
	
l7813:	
;ADC.c: 173: SetGain(32);
	movlw	low(020h)
	movwf	(?_SetGain)
	movlw	high(020h)
	movwf	((?_SetGain))+1
	fcall	_SetGain
	goto	l7817
	line	174
	
l1483:	
	line	175
;ADC.c: 174: }
;ADC.c: 175: }else zeros = 0;
	goto	l7817
	
l1482:	
	
l7815:	
	movlb 0	; select bank0
	clrf	(_zeros)
	clrf	(_zeros+1)
	goto	l7817
	
l1484:	
	line	176
	
l7817:	
;ADC.c: 176: if (result >= 0b1111100000 && ganancia == 32){
	movf	(SelectGain@result+1),w
	xorlw	80h
	movwf	btemp+1
	movlw	(high(03E0h))^80h
	subwf	btemp+1,w
	skipz
	goto	u3045
	movlw	low(03E0h)
	subwf	(SelectGain@result),w
u3045:

	skipc
	goto	u3041
	goto	u3040
u3041:
	goto	l7825
u3040:
	
l7819:	
	movlw	020h
	xorwf	(SelectGain@ganancia),w
	iorwf	(SelectGain@ganancia+1),w
	skipz
	goto	u3051
	goto	u3050
u3051:
	goto	l7825
u3050:
	line	177
	
l7821:	
;ADC.c: 177: prx_ganancia = MaxGanancia;
	movf	(SelectGain@MaxGanancia+1),w
	clrf	(SelectGain@prx_ganancia+1)
	addwf	(SelectGain@prx_ganancia+1)
	movf	(SelectGain@MaxGanancia),w
	clrf	(SelectGain@prx_ganancia)
	addwf	(SelectGain@prx_ganancia)

	line	178
	
l7823:	
;ADC.c: 178: SetGain(MaxGanancia);
	movf	(SelectGain@MaxGanancia+1),w
	clrf	(?_SetGain+1)
	addwf	(?_SetGain+1)
	movf	(SelectGain@MaxGanancia),w
	clrf	(?_SetGain)
	addwf	(?_SetGain)

	fcall	_SetGain
	goto	l7825
	line	179
	
l1485:	
	line	181
	
l7825:	
;ADC.c: 179: }
;ADC.c: 181: return prx_ganancia;
	movf	(SelectGain@prx_ganancia+1),w
	clrf	(?_SelectGain+1)
	addwf	(?_SelectGain+1)
	movf	(SelectGain@prx_ganancia),w
	clrf	(?_SelectGain)
	addwf	(?_SelectGain)

	goto	l1486
	
l7827:	
	line	183
	
l1486:	
	return
	opt stack 0
GLOBAL	__end_of_SelectGain
	__end_of_SelectGain:
;; =============== function _SelectGain ends ============

	signat	_SelectGain,12410
	global	_MaqEstados
psect	text574,local,class=CODE,delta=2
global __ptext574
__ptext574:

;; *************** function _MaqEstados *****************
;; Defined at:
;;		line 117 in file "D:\SVN\Pruebav1.1\seccionador\trunk\main.c"
;; Parameters:    Size  Location     Type
;;  linea           1    wreg     enum E2245
;; Auto vars:     Size  Location     Type
;;  linea           1    3[COMMON] enum E2245
;; Return value:  Size  Location     Type
;;		None               void
;; Registers used:
;;		wreg, fsr0l, fsr0h, status,2, status,0, pclath, cstack
;; Tracked objects:
;;		On entry : 0/0
;;		On exit  : 0/0
;;		Unchanged: 0/0
;; Data sizes:     COMMON   BANK0   BANK1   BANK2   BANK3   BANK4
;;      Params:         0       0       0       0       0       0
;;      Locals:         1       0       0       0       0       0
;;      Temps:          1       0       0       0       0       0
;;      Totals:         2       0       0       0       0       0
;;Total ram usage:        2 bytes
;; Hardware stack levels used:    1
;; Hardware stack levels required when called:    1
;; This function calls:
;;		_SetEstado
;; This function is called by:
;;		_main
;; This function uses a non-reentrant model
;;
psect	text574
	file	"D:\SVN\Pruebav1.1\seccionador\trunk\main.c"
	line	117
	global	__size_of_MaqEstados
	__size_of_MaqEstados	equ	__end_of_MaqEstados-_MaqEstados
	
_MaqEstados:	
	opt	stack 14
; Regs used in _MaqEstados: [wreg-fsr0h+status,2+status,0+pclath+cstack]
;MaqEstados@linea stored from wreg
	movwf	(MaqEstados@linea)
	line	119
	
l7759:	
;main.c: 119: switch (estado){
	goto	l7795
	line	121
;main.c: 121: case 0: if(linea == FALTA) SetEstado(1);
	
l4456:	
	
l7761:	
	movf	(MaqEstados@linea),w
	xorlw	01h&0ffh
	skipz
	goto	u2931
	goto	u2930
u2931:
	goto	l7765
u2930:
	
l7763:	
	movlw	low(01h)
	movwf	(?_SetEstado)
	movlw	high(01h)
	movwf	((?_SetEstado))+1
	fcall	_SetEstado
	goto	l7765
	
l4457:	
	line	122
	
l7765:	
;main.c: 122: reenganches = 0;
	movlb 0	; select bank0
	clrf	(_reenganches)
	clrf	(_reenganches+1)
	line	123
;main.c: 123: break;
	goto	l4472
	line	125
;main.c: 125: case 1: if(linea == NOLINEA){
	
l4459:	
	
l7767:	
	movf	(MaqEstados@linea),f
	skipz
	goto	u2941
	goto	u2940
u2941:
	goto	l7773
u2940:
	line	126
	
l7769:	
;main.c: 126: SetEstado(2);
	movlw	low(02h)
	movwf	(?_SetEstado)
	movlw	high(02h)
	movwf	((?_SetEstado))+1
	fcall	_SetEstado
	line	127
	
l7771:	
;main.c: 127: ++reenganches;
	movlw	low(01h)
	movlb 0	; select bank0
	addwf	(_reenganches),f
	movlw	high(01h)
	addwfc	(_reenganches+1),f
	line	128
;main.c: 128: }
	goto	l4472
	line	129
	
l4460:	
	
l7773:	
;main.c: 129: else if(linea == NOFALTA) SetEstado(0);
	movf	(MaqEstados@linea),w
	xorlw	02h&0ffh
	skipz
	goto	u2951
	goto	u2950
u2951:
	goto	l4472
u2950:
	
l7775:	
	movlw	low(0)
	movwf	(?_SetEstado)
	movlw	high(0)
	movwf	((?_SetEstado))+1
	fcall	_SetEstado
	goto	l4472
	
l4462:	
	goto	l4472
	line	130
	
l4461:	
;main.c: 130: break;
	goto	l4472
	line	132
;main.c: 132: case 2: if(reenganches >= MaxReenganches) SetEstado(3);
	
l4463:	
	
l7777:	
	movlb 0	; select bank0
	movf	(_reenganches+1),w
	xorlw	80h
	movwf	(??_MaqEstados+0)+0
	movf	(_MaxReenganches+1),w
	xorlw	80h
	subwf	(??_MaqEstados+0)+0,w
	skipz
	goto	u2965
	movf	(_MaxReenganches),w
	subwf	(_reenganches),w
u2965:

	skipc
	goto	u2961
	goto	u2960
u2961:
	goto	l7781
u2960:
	
l7779:	
	movlw	low(03h)
	movwf	(?_SetEstado)
	movlw	high(03h)
	movwf	((?_SetEstado))+1
	fcall	_SetEstado
	goto	l4472
	line	133
	
l4464:	
	
l7781:	
;main.c: 133: else if(linea == FALTA) SetEstado(1);
	movf	(MaqEstados@linea),w
	xorlw	01h&0ffh
	skipz
	goto	u2971
	goto	u2970
u2971:
	goto	l7785
u2970:
	
l7783:	
	movlw	low(01h)
	movwf	(?_SetEstado)
	movlw	high(01h)
	movwf	((?_SetEstado))+1
	fcall	_SetEstado
	goto	l4472
	line	134
	
l4466:	
	
l7785:	
;main.c: 134: else if(linea == NOFALTA) SetEstado(0);
	movf	(MaqEstados@linea),w
	xorlw	02h&0ffh
	skipz
	goto	u2981
	goto	u2980
u2981:
	goto	l4472
u2980:
	
l7787:	
	movlw	low(0)
	movwf	(?_SetEstado)
	movlw	high(0)
	movwf	((?_SetEstado))+1
	fcall	_SetEstado
	goto	l4472
	
l4468:	
	goto	l4472
	line	135
	
l4467:	
	goto	l4472
	
l4465:	
;main.c: 135: break;
	goto	l4472
	line	137
;main.c: 137: case 3: LATA7 = 1;
	
l4469:	
	movlb 2	; select bank2
	bsf	(2151/8)^0100h,(2151)&7
	line	138
	
l7789:	
;main.c: 138: if(linea == NOFALTA) SetEstado(0);
	movf	(MaqEstados@linea),w
	xorlw	02h&0ffh
	skipz
	goto	u2991
	goto	u2990
u2991:
	goto	l4472
u2990:
	
l7791:	
	movlw	low(0)
	movwf	(?_SetEstado)
	movlw	high(0)
	movwf	((?_SetEstado))+1
	fcall	_SetEstado
	goto	l4472
	
l4470:	
	line	139
;main.c: 139: break;
	goto	l4472
	line	141
;main.c: 141: default: SetEstado(0);
	
l4471:	
	
l7793:	
	movlw	low(0)
	movwf	(?_SetEstado)
	movlw	high(0)
	movwf	((?_SetEstado))+1
	fcall	_SetEstado
	line	142
;main.c: 142: }
	goto	l4472
	line	119
	
l4455:	
	
l7795:	
	; Switch on 2 bytes has been partitioned into a top level switch of size 1, and 1 sub-switches
; Switch size 1, requested type "space"
; Number of cases is 1, Range of values is 0 to 0
; switch strategies available:
; Name         Instructions Cycles
; simple_byte            4     3 (average)
; direct_byte            8     6 (fixed)
; jumptable            260     6 (fixed)
; rangetable             5     4 (fixed)
; spacedrange            7     6 (fixed)
; locatedrange           1     3 (fixed)
;	Chosen strategy is simple_byte

	movlb 0	; select bank0
	movf (_estado+1),w
	opt asmopt_off
	xorlw	0^0	; case 0
	skipnz
	goto	l7957
	goto	l7793
	opt asmopt_on
	
l7957:	
; Switch size 1, requested type "space"
; Number of cases is 4, Range of values is 0 to 3
; switch strategies available:
; Name         Instructions Cycles
; simple_byte           13     7 (average)
; direct_byte           14     6 (fixed)
; jumptable            260     6 (fixed)
; rangetable             8     4 (fixed)
; spacedrange           13     6 (fixed)
; locatedrange           4     3 (fixed)
;	Chosen strategy is simple_byte

	movf (_estado),w
	opt asmopt_off
	xorlw	0^0	; case 0
	skipnz
	goto	l7761
	xorlw	1^0	; case 1
	skipnz
	goto	l7767
	xorlw	2^1	; case 2
	skipnz
	goto	l7777
	xorlw	3^2	; case 3
	skipnz
	goto	l4469
	goto	l7793
	opt asmopt_on

	line	142
	
l4458:	
	line	143
	
l4472:	
	return
	opt stack 0
GLOBAL	__end_of_MaqEstados
	__end_of_MaqEstados:
;; =============== function _MaqEstados ends ============

	signat	_MaqEstados,4216
	global	_Inicializacion
psect	text575,local,class=CODE,delta=2
global __ptext575
__ptext575:

;; *************** function _Inicializacion *****************
;; Defined at:
;;		line 37 in file "D:\SVN\Pruebav1.1\seccionador\trunk\main.c"
;; Parameters:    Size  Location     Type
;;		None
;; Auto vars:     Size  Location     Type
;;		None
;; Return value:  Size  Location     Type
;;		None               void
;; Registers used:
;;		wreg, fsr1l, fsr1h, status,2, status,0, pclath, cstack
;; Tracked objects:
;;		On entry : 0/0
;;		On exit  : 0/0
;;		Unchanged: 0/0
;; Data sizes:     COMMON   BANK0   BANK1   BANK2   BANK3   BANK4
;;      Params:         0       0       0       0       0       0
;;      Locals:         0       0       0       0       0       0
;;      Temps:          0       0       0       0       0       0
;;      Totals:         0       0       0       0       0       0
;;Total ram usage:        0 bytes
;; Hardware stack levels used:    1
;; Hardware stack levels required when called:    1
;; This function calls:
;;		_Init_Config
;;		_Init_IO
;;		_Init_FVR
;;		_Init_ADC
;;		_DAC
;;		_Init_SPI
;;		_SelectIntensidad
;;		_SelectReenganches
;;		_SetEstado
;; This function is called by:
;;		_main
;; This function uses a non-reentrant model
;;
psect	text575
	file	"D:\SVN\Pruebav1.1\seccionador\trunk\main.c"
	line	37
	global	__size_of_Inicializacion
	__size_of_Inicializacion	equ	__end_of_Inicializacion-_Inicializacion
	
_Inicializacion:	
	opt	stack 14
; Regs used in _Inicializacion: [wreg+fsr1l-status,0+pclath+cstack]
	line	38
	
l7749:	
;main.c: 38: Init_Config();
	fcall	_Init_Config
	line	39
;main.c: 39: Init_IO();
	fcall	_Init_IO
	line	40
;main.c: 40: Init_FVR();
	fcall	_Init_FVR
	line	41
;main.c: 41: Init_ADC();
	fcall	_Init_ADC
	line	42
;main.c: 42: DAC();
	fcall	_DAC
	line	43
;main.c: 43: Init_SPI(0,0);
	movlw	low(0)
	movwf	(?_Init_SPI)
	movlw	high(0)
	movwf	((?_Init_SPI))+1
	movlw	low(0)
	movwf	0+(?_Init_SPI)+02h
	movlw	high(0)
	movwf	(0+(?_Init_SPI)+02h)+1
	fcall	_Init_SPI
	line	47
	
l7751:	
;main.c: 47: LATB4 = 0;
	movlb 2	; select bank2
	bcf	(2156/8)^0100h,(2156)&7
	line	48
	
l7753:	
;main.c: 48: LATB4 = 1;
	bsf	(2156/8)^0100h,(2156)&7
	line	50
	
l7755:	
;main.c: 50: MaxIntensidad = Table[0][SelectIntensidad()];
	fcall	_SelectIntensidad
	movf	(0+(?_SelectIntensidad)),w
	addwf	wreg,w
	addlw	_Table&0ffh
	movwf	fsr1l
	movlw 1	; select bank2/3
	movwf fsr1h	
	
	moviw	[0]fsr1
	movlb 0	; select bank0
	movwf	(_MaxIntensidad)
	moviw	[1]fsr1
	movwf	(_MaxIntensidad+1)
	line	51
	
l7757:	
;main.c: 51: MaxGanancia = Table[1][SelectIntensidad()];
	fcall	_SelectIntensidad
	movf	(0+(?_SelectIntensidad)),w
	addwf	wreg,w
	addlw	_Table+020h&0ffh
	movwf	fsr1l
	movlw 1	; select bank2/3
	movwf fsr1h	
	
	moviw	[0]fsr1
	movlb 0	; select bank0
	movwf	(_MaxGanancia)
	moviw	[1]fsr1
	movwf	(_MaxGanancia+1)
	line	52
;main.c: 52: MaxReenganches = SelectReenganches();
	fcall	_SelectReenganches
	movf	(1+(?_SelectReenganches)),w
	movlb 0	; select bank0
	clrf	(_MaxReenganches+1)
	addwf	(_MaxReenganches+1)
	movf	(0+(?_SelectReenganches)),w
	clrf	(_MaxReenganches)
	addwf	(_MaxReenganches)

	line	55
;main.c: 55: SetEstado(0);
	movlw	low(0)
	movwf	(?_SetEstado)
	movlw	high(0)
	movwf	((?_SetEstado))+1
	fcall	_SetEstado
	line	56
	
l4436:	
	return
	opt stack 0
GLOBAL	__end_of_Inicializacion
	__end_of_Inicializacion:
;; =============== function _Inicializacion ends ============

	signat	_Inicializacion,88
	global	_SetGain
psect	text576,local,class=CODE,delta=2
global __ptext576
__ptext576:

;; *************** function _SetGain *****************
;; Defined at:
;;		line 68 in file "D:\SVN\Pruebav1.1\seccionador\trunk\SPI.c"
;; Parameters:    Size  Location     Type
;;  gain            2    2[COMMON] int 
;; Auto vars:     Size  Location     Type
;;		None
;; Return value:  Size  Location     Type
;;		None               void
;; Registers used:
;;		wreg, fsr0l, fsr0h, status,2, status,0, pclath, cstack
;; Tracked objects:
;;		On entry : 0/0
;;		On exit  : 0/0
;;		Unchanged: 0/0
;; Data sizes:     COMMON   BANK0   BANK1   BANK2   BANK3   BANK4
;;      Params:         2       0       0       0       0       0
;;      Locals:         0       0       0       0       0       0
;;      Temps:          0       0       0       0       0       0
;;      Totals:         2       0       0       0       0       0
;;Total ram usage:        2 bytes
;; Hardware stack levels used:    1
;; Hardware stack levels required when called:    1
;; This function calls:
;;		_spi_out
;; This function is called by:
;;		_SelectGain
;; This function uses a non-reentrant model
;;
psect	text576
	file	"D:\SVN\Pruebav1.1\seccionador\trunk\SPI.c"
	line	68
	global	__size_of_SetGain
	__size_of_SetGain	equ	__end_of_SetGain-_SetGain
	
_SetGain:	
	opt	stack 12
; Regs used in _SetGain: [wreg-fsr0h+status,2+status,0+pclath+cstack]
	line	70
	
l7721:	
;SPI.c: 70: LATB4 = 0;
	movlb 2	; select bank2
	bcf	(2156/8)^0100h,(2156)&7
	line	71
;SPI.c: 71: switch(gain)
	goto	l7743
	line	73
;SPI.c: 72: {
;SPI.c: 73: case 0:
	
l5914:	
	line	74
	
l7723:	
;SPI.c: 74: spi_out(0b00100000);
	movlw	low(020h)
	movwf	(?_spi_out)
	movlw	high(020h)
	movwf	((?_spi_out))+1
	fcall	_spi_out
	line	75
;SPI.c: 75: spi_out(0x0);
	movlw	low(0)
	movwf	(?_spi_out)
	movlw	high(0)
	movwf	((?_spi_out))+1
	fcall	_spi_out
	line	76
;SPI.c: 76: break;
	goto	l5915
	line	77
;SPI.c: 77: case 1:
	
l5916:	
	line	78
	
l7725:	
;SPI.c: 78: spi_out(0b01000000);
	movlw	low(040h)
	movwf	(?_spi_out)
	movlw	high(040h)
	movwf	((?_spi_out))+1
	fcall	_spi_out
	line	79
;SPI.c: 79: spi_out(0b00000000);
	movlw	low(0)
	movwf	(?_spi_out)
	movlw	high(0)
	movwf	((?_spi_out))+1
	fcall	_spi_out
	line	80
;SPI.c: 80: break;
	goto	l5915
	line	81
;SPI.c: 81: case 2:
	
l5917:	
	line	82
	
l7727:	
;SPI.c: 82: spi_out(0b01000000);
	movlw	low(040h)
	movwf	(?_spi_out)
	movlw	high(040h)
	movwf	((?_spi_out))+1
	fcall	_spi_out
	line	83
;SPI.c: 83: spi_out(0b00000001);
	movlw	low(01h)
	movwf	(?_spi_out)
	movlw	high(01h)
	movwf	((?_spi_out))+1
	fcall	_spi_out
	line	84
;SPI.c: 84: break;
	goto	l5915
	line	85
;SPI.c: 85: case 4:
	
l5918:	
	line	86
	
l7729:	
;SPI.c: 86: spi_out(0b01000000);
	movlw	low(040h)
	movwf	(?_spi_out)
	movlw	high(040h)
	movwf	((?_spi_out))+1
	fcall	_spi_out
	line	87
;SPI.c: 87: spi_out(0b00000010);
	movlw	low(02h)
	movwf	(?_spi_out)
	movlw	high(02h)
	movwf	((?_spi_out))+1
	fcall	_spi_out
	line	88
;SPI.c: 88: break;
	goto	l5915
	line	89
;SPI.c: 89: case 5:
	
l5919:	
	line	90
	
l7731:	
;SPI.c: 90: spi_out(0b01000000);
	movlw	low(040h)
	movwf	(?_spi_out)
	movlw	high(040h)
	movwf	((?_spi_out))+1
	fcall	_spi_out
	line	91
;SPI.c: 91: spi_out(0b00000011);
	movlw	low(03h)
	movwf	(?_spi_out)
	movlw	high(03h)
	movwf	((?_spi_out))+1
	fcall	_spi_out
	line	92
;SPI.c: 92: break;
	goto	l5915
	line	93
;SPI.c: 93: case 8:
	
l5920:	
	line	94
	
l7733:	
;SPI.c: 94: spi_out(0b01000000);
	movlw	low(040h)
	movwf	(?_spi_out)
	movlw	high(040h)
	movwf	((?_spi_out))+1
	fcall	_spi_out
	line	95
;SPI.c: 95: spi_out(0b00000100);
	movlw	low(04h)
	movwf	(?_spi_out)
	movlw	high(04h)
	movwf	((?_spi_out))+1
	fcall	_spi_out
	line	96
;SPI.c: 96: break;
	goto	l5915
	line	97
;SPI.c: 97: case 10:
	
l5921:	
	line	98
	
l7735:	
;SPI.c: 98: spi_out(0b01000000);
	movlw	low(040h)
	movwf	(?_spi_out)
	movlw	high(040h)
	movwf	((?_spi_out))+1
	fcall	_spi_out
	line	99
;SPI.c: 99: spi_out(0b00000101);
	movlw	low(05h)
	movwf	(?_spi_out)
	movlw	high(05h)
	movwf	((?_spi_out))+1
	fcall	_spi_out
	line	100
;SPI.c: 100: break;
	goto	l5915
	line	101
;SPI.c: 101: case 16:
	
l5922:	
	line	102
	
l7737:	
;SPI.c: 102: spi_out(0b01000000);
	movlw	low(040h)
	movwf	(?_spi_out)
	movlw	high(040h)
	movwf	((?_spi_out))+1
	fcall	_spi_out
	line	103
;SPI.c: 103: spi_out(0b00000110);
	movlw	low(06h)
	movwf	(?_spi_out)
	movlw	high(06h)
	movwf	((?_spi_out))+1
	fcall	_spi_out
	line	104
;SPI.c: 104: break;
	goto	l5915
	line	105
;SPI.c: 105: case 32:
	
l5923:	
	line	106
	
l7739:	
;SPI.c: 106: spi_out(0b01000000);
	movlw	low(040h)
	movwf	(?_spi_out)
	movlw	high(040h)
	movwf	((?_spi_out))+1
	fcall	_spi_out
	line	107
;SPI.c: 107: spi_out(0b00000111);
	movlw	low(07h)
	movwf	(?_spi_out)
	movlw	high(07h)
	movwf	((?_spi_out))+1
	fcall	_spi_out
	line	108
;SPI.c: 108: break;
	goto	l5915
	line	109
	
l7741:	
;SPI.c: 109: }
	goto	l5915
	line	71
	
l5913:	
	
l7743:	
	; Switch on 2 bytes has been partitioned into a top level switch of size 1, and 1 sub-switches
; Switch size 1, requested type "space"
; Number of cases is 1, Range of values is 0 to 0
; switch strategies available:
; Name         Instructions Cycles
; simple_byte            4     3 (average)
; direct_byte            8     6 (fixed)
; jumptable            260     6 (fixed)
; rangetable             5     4 (fixed)
; spacedrange            7     6 (fixed)
; locatedrange           1     3 (fixed)
;	Chosen strategy is simple_byte

	movf (SetGain@gain+1),w
	opt asmopt_off
	xorlw	0^0	; case 0
	skipnz
	goto	l7959
	goto	l5915
	opt asmopt_on
	
l7959:	
; Switch size 1, requested type "space"
; Number of cases is 9, Range of values is 0 to 32
; switch strategies available:
; Name         Instructions Cycles
; simple_byte           28    15 (average)
; direct_byte           72     6 (fixed)
; jumptable            260     6 (fixed)
; rangetable            37     4 (fixed)
; spacedrange           71     6 (fixed)
; locatedrange          33     3 (fixed)
;	Chosen strategy is simple_byte

	movf (SetGain@gain),w
	opt asmopt_off
	xorlw	0^0	; case 0
	skipnz
	goto	l7723
	xorlw	1^0	; case 1
	skipnz
	goto	l7725
	xorlw	2^1	; case 2
	skipnz
	goto	l7727
	xorlw	4^2	; case 4
	skipnz
	goto	l7729
	xorlw	5^4	; case 5
	skipnz
	goto	l7731
	xorlw	8^5	; case 8
	skipnz
	goto	l7733
	xorlw	10^8	; case 10
	skipnz
	goto	l7735
	xorlw	16^10	; case 16
	skipnz
	goto	l7737
	xorlw	32^16	; case 32
	skipnz
	goto	l7739
	goto	l5915
	opt asmopt_on

	line	109
	
l5915:	
	line	110
;SPI.c: 110: LATB4=1;
	movlb 2	; select bank2
	bsf	(2156/8)^0100h,(2156)&7
	line	111
	
l5924:	
	return
	opt stack 0
GLOBAL	__end_of_SetGain
	__end_of_SetGain:
;; =============== function _SetGain ends ============

	signat	_SetGain,4216
	global	_ValorMedio
psect	text577,local,class=CODE,delta=2
global __ptext577
__ptext577:

;; *************** function _ValorMedio *****************
;; Defined at:
;;		line 63 in file "D:\SVN\Pruebav1.1\seccionador\trunk\ADC.c"
;; Parameters:    Size  Location     Type
;;  result          2    9[COMMON] int 
;; Auto vars:     Size  Location     Type
;;  j               2    2[BANK0 ] int 
;;  suma            2    0[BANK0 ] int 
;; Return value:  Size  Location     Type
;;                  2    9[COMMON] int 
;; Registers used:
;;		wreg, fsr1l, fsr1h, status,2, status,0, btemp+1, pclath, cstack
;; Tracked objects:
;;		On entry : 0/0
;;		On exit  : 0/0
;;		Unchanged: 0/0
;; Data sizes:     COMMON   BANK0   BANK1   BANK2   BANK3   BANK4
;;      Params:         2       0       0       0       0       0
;;      Locals:         0       4       0       0       0       0
;;      Temps:          2       0       0       0       0       0
;;      Totals:         4       4       0       0       0       0
;;Total ram usage:        8 bytes
;; Hardware stack levels used:    1
;; Hardware stack levels required when called:    1
;; This function calls:
;;		___awdiv
;; This function is called by:
;;		_ConexionInductancia
;; This function uses a non-reentrant model
;;
psect	text577
	file	"D:\SVN\Pruebav1.1\seccionador\trunk\ADC.c"
	line	63
	global	__size_of_ValorMedio
	__size_of_ValorMedio	equ	__end_of_ValorMedio-_ValorMedio
	
_ValorMedio:	
	opt	stack 12
; Regs used in _ValorMedio: [wreg+fsr1l-status,0+btemp+1+pclath+cstack]
	line	64
	
l7687:	
;ADC.c: 64: int suma = 0;
	movlb 0	; select bank0
	clrf	(ValorMedio@suma)
	clrf	(ValorMedio@suma+1)
	line	66
	
l7689:	
;ADC.c: 66: s[i] = result;
	movf	(_i),w
	addwf	wreg,w
	addlw	_s&0ffh
	movwf	fsr1l
	clrf fsr1h	
	
	movf	(ValorMedio@result),w
	movwi	[0]fsr1
	movf	(ValorMedio@result+1),w
	movwi	[1]fsr1
	line	67
	
l7691:	
;ADC.c: 67: i++;
	movlw	low(01h)
	addwf	(_i),f
	movlw	high(01h)
	addwfc	(_i+1),f
	line	68
	
l7693:	
;ADC.c: 68: if( i == 20) {
	movlw	014h
	xorwf	(_i),w
	iorwf	(_i+1),w
	skipz
	goto	u2891
	goto	u2890
u2891:
	goto	l7699
u2890:
	line	69
	
l7695:	
;ADC.c: 69: i=1;
	movlw	low(01h)
	movwf	(_i)
	movlw	high(01h)
	movwf	((_i))+1
	line	70
	
l7697:	
;ADC.c: 70: p_seg = 0;
	clrf	(_p_seg)
	clrf	(_p_seg+1)
	goto	l7699
	line	71
	
l1454:	
	line	72
	
l7699:	
;ADC.c: 71: }
;ADC.c: 72: for (int j= 0; j<20; j++)
	clrf	(ValorMedio@j)
	clrf	(ValorMedio@j+1)
	
l7701:	
	movf	(ValorMedio@j+1),w
	xorlw	80h
	movwf	btemp+1
	movlw	(high(014h))^80h
	subwf	btemp+1,w
	skipz
	goto	u2905
	movlw	low(014h)
	subwf	(ValorMedio@j),w
u2905:

	skipc
	goto	u2901
	goto	u2900
u2901:
	goto	l7705
u2900:
	goto	l7711
	
l7703:	
	goto	l7711
	line	73
	
l1455:	
	line	74
	
l7705:	
;ADC.c: 73: {
;ADC.c: 74: suma += s[j];
	movlb 0	; select bank0
	movf	(ValorMedio@j),w
	addwf	wreg,w
	addlw	_s&0ffh
	movwf	fsr1l
	clrf fsr1h	
	
	moviw	[0]fsr1
	movwf	(??_ValorMedio+0)+0
	moviw	[1]fsr1
	movwf	(??_ValorMedio+0)+0+1
	movf	0+(??_ValorMedio+0)+0,w
	addwf	(ValorMedio@suma),f
	movf	1+(??_ValorMedio+0)+0,w
	addwfc	(ValorMedio@suma+1),f
	line	72
	
l7707:	
	movlw	low(01h)
	addwf	(ValorMedio@j),f
	movlw	high(01h)
	addwfc	(ValorMedio@j+1),f
	
l7709:	
	movf	(ValorMedio@j+1),w
	xorlw	80h
	movwf	btemp+1
	movlw	(high(014h))^80h
	subwf	btemp+1,w
	skipz
	goto	u2915
	movlw	low(014h)
	subwf	(ValorMedio@j),w
u2915:

	skipc
	goto	u2911
	goto	u2910
u2911:
	goto	l7705
u2910:
	goto	l7711
	
l1456:	
	line	76
	
l7711:	
;ADC.c: 75: }
;ADC.c: 76: if(p_seg) suma = 530;
	movlb 0	; select bank0
	movf	(_p_seg+1),w
	iorwf	(_p_seg),w
	skipnz
	goto	u2921
	goto	u2920
u2921:
	goto	l7715
u2920:
	
l7713:	
	movlw	low(0212h)
	movwf	(ValorMedio@suma)
	movlw	high(0212h)
	movwf	((ValorMedio@suma))+1
	goto	l7717
	line	77
	
l1457:	
	
l7715:	
;ADC.c: 77: else suma /= 20;
	movlw	low(014h)
	movwf	(?___awdiv)
	movlw	high(014h)
	movwf	((?___awdiv))+1
	movf	(ValorMedio@suma+1),w
	clrf	1+(?___awdiv)+02h
	addwf	1+(?___awdiv)+02h
	movf	(ValorMedio@suma),w
	clrf	0+(?___awdiv)+02h
	addwf	0+(?___awdiv)+02h

	fcall	___awdiv
	movf	(1+(?___awdiv)),w
	movlb 0	; select bank0
	clrf	(ValorMedio@suma+1)
	addwf	(ValorMedio@suma+1)
	movf	(0+(?___awdiv)),w
	clrf	(ValorMedio@suma)
	addwf	(ValorMedio@suma)

	goto	l7717
	
l1458:	
	line	78
	
l7717:	
;ADC.c: 78: return suma;
	movf	(ValorMedio@suma+1),w
	clrf	(?_ValorMedio+1)
	addwf	(?_ValorMedio+1)
	movf	(ValorMedio@suma),w
	clrf	(?_ValorMedio)
	addwf	(?_ValorMedio)

	goto	l1459
	
l7719:	
	line	79
	
l1459:	
	return
	opt stack 0
GLOBAL	__end_of_ValorMedio
	__end_of_ValorMedio:
;; =============== function _ValorMedio ends ============

	signat	_ValorMedio,4218
	global	___awdiv
psect	text578,local,class=CODE,delta=2
global __ptext578
__ptext578:

;; *************** function ___awdiv *****************
;; Defined at:
;;		line 5 in file "C:\Program Files (x86)\HI-TECH Software\PICC\9.81\sources\awdiv.c"
;; Parameters:    Size  Location     Type
;;  divisor         2    0[COMMON] int 
;;  dividend        2    2[COMMON] int 
;; Auto vars:     Size  Location     Type
;;  quotient        2    7[COMMON] int 
;;  sign            1    6[COMMON] unsigned char 
;;  counter         1    5[COMMON] unsigned char 
;; Return value:  Size  Location     Type
;;                  2    0[COMMON] int 
;; Registers used:
;;		wreg, status,2, status,0
;; Tracked objects:
;;		On entry : 0/0
;;		On exit  : 0/0
;;		Unchanged: 0/0
;; Data sizes:     COMMON   BANK0   BANK1   BANK2   BANK3   BANK4
;;      Params:         4       0       0       0       0       0
;;      Locals:         4       0       0       0       0       0
;;      Temps:          1       0       0       0       0       0
;;      Totals:         9       0       0       0       0       0
;;Total ram usage:        9 bytes
;; Hardware stack levels used:    1
;; This function calls:
;;		Nothing
;; This function is called by:
;;		_ValorMedio
;; This function uses a non-reentrant model
;;
psect	text578
	file	"C:\Program Files (x86)\HI-TECH Software\PICC\9.81\sources\awdiv.c"
	line	5
	global	__size_of___awdiv
	__size_of___awdiv	equ	__end_of___awdiv-___awdiv
	
___awdiv:	
	opt	stack 12
; Regs used in ___awdiv: [wreg+status,2+status,0]
	line	9
	
l7647:	
	clrf	(___awdiv@sign)
	line	10
	btfss	(___awdiv@divisor+1),7
	goto	u2791
	goto	u2790
u2791:
	goto	l7651
u2790:
	line	11
	
l7649:	
	comf	(___awdiv@divisor),f
	comf	(___awdiv@divisor+1),f
	incf	(___awdiv@divisor),f
	skipnz
	incf	(___awdiv@divisor+1),f
	line	12
	clrf	(___awdiv@sign)
	bsf	status,0
	rlf	(___awdiv@sign),f
	goto	l7651
	line	13
	
l6073:	
	line	14
	
l7651:	
	btfss	(___awdiv@dividend+1),7
	goto	u2801
	goto	u2800
u2801:
	goto	l7657
u2800:
	line	15
	
l7653:	
	comf	(___awdiv@dividend),f
	comf	(___awdiv@dividend+1),f
	incf	(___awdiv@dividend),f
	skipnz
	incf	(___awdiv@dividend+1),f
	line	16
	
l7655:	
	movlw	(01h)
	movwf	(??___awdiv+0)+0
	movf	(??___awdiv+0)+0,w
	xorwf	(___awdiv@sign),f
	goto	l7657
	line	17
	
l6074:	
	line	18
	
l7657:	
	clrf	(___awdiv@quotient)
	clrf	(___awdiv@quotient+1)
	line	19
	
l7659:	
	movf	(___awdiv@divisor+1),w
	iorwf	(___awdiv@divisor),w
	skipnz
	goto	u2811
	goto	u2810
u2811:
	goto	l7679
u2810:
	line	20
	
l7661:	
	clrf	(___awdiv@counter)
	bsf	status,0
	rlf	(___awdiv@counter),f
	line	21
	goto	l7667
	
l6077:	
	line	22
	
l7663:	
	movlw	01h
	
u2825:
	lslf	(___awdiv@divisor),f
	rlf	(___awdiv@divisor+1),f
	decfsz	wreg,f
	goto	u2825
	line	23
	
l7665:	
	movlw	(01h)
	movwf	(??___awdiv+0)+0
	movf	(??___awdiv+0)+0,w
	addwf	(___awdiv@counter),f
	goto	l7667
	line	24
	
l6076:	
	line	21
	
l7667:	
	btfss	(___awdiv@divisor+1),(15)&7
	goto	u2831
	goto	u2830
u2831:
	goto	l7663
u2830:
	goto	l7669
	
l6078:	
	goto	l7669
	line	25
	
l6079:	
	line	26
	
l7669:	
	movlw	01h
	
u2845:
	lslf	(___awdiv@quotient),f
	rlf	(___awdiv@quotient+1),f
	decfsz	wreg,f
	goto	u2845
	line	27
	movf	(___awdiv@divisor+1),w
	subwf	(___awdiv@dividend+1),w
	skipz
	goto	u2855
	movf	(___awdiv@divisor),w
	subwf	(___awdiv@dividend),w
u2855:
	skipc
	goto	u2851
	goto	u2850
u2851:
	goto	l7675
u2850:
	line	28
	
l7671:	
	movf	(___awdiv@divisor),w
	subwf	(___awdiv@dividend),f
	movf	(___awdiv@divisor+1),w
	subwfb	(___awdiv@dividend+1),f
	line	29
	
l7673:	
	bsf	(___awdiv@quotient)+(0/8),(0)&7
	goto	l7675
	line	30
	
l6080:	
	line	31
	
l7675:	
	movlw	01h
	
u2865:
	lsrf	(___awdiv@divisor+1),f
	rrf	(___awdiv@divisor),f
	decfsz	wreg,f
	goto	u2865
	line	32
	
l7677:	
	movlw	low(01h)
	subwf	(___awdiv@counter),f
	btfss	status,2
	goto	u2871
	goto	u2870
u2871:
	goto	l7669
u2870:
	goto	l7679
	
l6081:	
	goto	l7679
	line	33
	
l6075:	
	line	34
	
l7679:	
	movf	(___awdiv@sign),w
	skipz
	goto	u2880
	goto	l7683
u2880:
	line	35
	
l7681:	
	comf	(___awdiv@quotient),f
	comf	(___awdiv@quotient+1),f
	incf	(___awdiv@quotient),f
	skipnz
	incf	(___awdiv@quotient+1),f
	goto	l7683
	
l6082:	
	line	36
	
l7683:	
	movf	(___awdiv@quotient+1),w
	clrf	(?___awdiv+1)
	addwf	(?___awdiv+1)
	movf	(___awdiv@quotient),w
	clrf	(?___awdiv)
	addwf	(?___awdiv)

	goto	l6083
	
l7685:	
	line	37
	
l6083:	
	return
	opt stack 0
GLOBAL	__end_of___awdiv
	__end_of___awdiv:
;; =============== function ___awdiv ends ============

	signat	___awdiv,8314
	global	_spi_out
psect	text579,local,class=CODE,delta=2
global __ptext579
__ptext579:

;; *************** function _spi_out *****************
;; Defined at:
;;		line 49 in file "D:\SVN\Pruebav1.1\seccionador\trunk\SPI.c"
;; Parameters:    Size  Location     Type
;;  send            2    0[COMMON] int 
;; Auto vars:     Size  Location     Type
;;		None
;; Return value:  Size  Location     Type
;;                  2    0[COMMON] int 
;; Registers used:
;;		wreg
;; Tracked objects:
;;		On entry : 0/0
;;		On exit  : 0/0
;;		Unchanged: 0/0
;; Data sizes:     COMMON   BANK0   BANK1   BANK2   BANK3   BANK4
;;      Params:         2       0       0       0       0       0
;;      Locals:         0       0       0       0       0       0
;;      Temps:          0       0       0       0       0       0
;;      Totals:         2       0       0       0       0       0
;;Total ram usage:        2 bytes
;; Hardware stack levels used:    1
;; This function calls:
;;		Nothing
;; This function is called by:
;;		_SetGain
;; This function uses a non-reentrant model
;;
psect	text579
	file	"D:\SVN\Pruebav1.1\seccionador\trunk\SPI.c"
	line	49
	global	__size_of_spi_out
	__size_of_spi_out	equ	__end_of_spi_out-_spi_out
	
_spi_out:	
	opt	stack 12
; Regs used in _spi_out: [wreg]
	line	50
	
l7641:	
;SPI.c: 50: SSP2BUF = send;
	movf	(spi_out@send),w
	movlb 4	; select bank4
	movwf	(537)^0200h	;volatile
	line	51
;SPI.c: 51: while(!SSP2STATbits.BF){}
	goto	l5907
	
l5908:	
	
l5907:	
	btfss	(540)^0200h,0	;volatile
	goto	u2781
	goto	u2780
u2781:
	goto	l5907
u2780:
	goto	l7643
	
l5909:	
	line	53
	
l7643:	
;SPI.c: 53: return SSP2BUF;
;	Return value of _spi_out is never used
	movf	(537)^0200h,w	;volatile
	goto	l5910
	
l7645:	
	line	54
	
l5910:	
	return
	opt stack 0
GLOBAL	__end_of_spi_out
	__end_of_spi_out:
;; =============== function _spi_out ends ============

	signat	_spi_out,4218
	global	_SetEstado
psect	text580,local,class=CODE,delta=2
global __ptext580
__ptext580:

;; *************** function _SetEstado *****************
;; Defined at:
;;		line 145 in file "D:\SVN\Pruebav1.1\seccionador\trunk\main.c"
;; Parameters:    Size  Location     Type
;;  num             2    0[COMMON] int 
;; Auto vars:     Size  Location     Type
;;		None
;; Return value:  Size  Location     Type
;;		None               void
;; Registers used:
;;		wreg, status,2, status,0
;; Tracked objects:
;;		On entry : 0/0
;;		On exit  : 0/0
;;		Unchanged: 0/0
;; Data sizes:     COMMON   BANK0   BANK1   BANK2   BANK3   BANK4
;;      Params:         2       0       0       0       0       0
;;      Locals:         0       0       0       0       0       0
;;      Temps:          0       0       0       0       0       0
;;      Totals:         2       0       0       0       0       0
;;Total ram usage:        2 bytes
;; Hardware stack levels used:    1
;; This function calls:
;;		Nothing
;; This function is called by:
;;		_Inicializacion
;;		_MaqEstados
;; This function uses a non-reentrant model
;;
psect	text580
	file	"D:\SVN\Pruebav1.1\seccionador\trunk\main.c"
	line	145
	global	__size_of_SetEstado
	__size_of_SetEstado	equ	__end_of_SetEstado-_SetEstado
	
_SetEstado:	
	opt	stack 14
; Regs used in _SetEstado: [wreg+status,2+status,0]
	line	146
	
l7639:	
;main.c: 146: estado = num;
	movf	(SetEstado@num+1),w
	movlb 0	; select bank0
	clrf	(_estado+1)
	addwf	(_estado+1)
	movf	(SetEstado@num),w
	clrf	(_estado)
	addwf	(_estado)

	line	147
	
l4475:	
	return
	opt stack 0
GLOBAL	__end_of_SetEstado
	__end_of_SetEstado:
;; =============== function _SetEstado ends ============

	signat	_SetEstado,4216
	global	_Init_SPI
psect	text581,local,class=CODE,delta=2
global __ptext581
__ptext581:

;; *************** function _Init_SPI *****************
;; Defined at:
;;		line 17 in file "D:\SVN\Pruebav1.1\seccionador\trunk\SPI.c"
;; Parameters:    Size  Location     Type
;;  cke             2    0[COMMON] int 
;;  ckp             2    2[COMMON] int 
;; Auto vars:     Size  Location     Type
;;		None
;; Return value:  Size  Location     Type
;;		None               void
;; Registers used:
;;		wreg, status,2, status,0
;; Tracked objects:
;;		On entry : 0/0
;;		On exit  : 0/0
;;		Unchanged: 0/0
;; Data sizes:     COMMON   BANK0   BANK1   BANK2   BANK3   BANK4
;;      Params:         4       0       0       0       0       0
;;      Locals:         0       0       0       0       0       0
;;      Temps:          1       0       0       0       0       0
;;      Totals:         5       0       0       0       0       0
;;Total ram usage:        5 bytes
;; Hardware stack levels used:    1
;; This function calls:
;;		Nothing
;; This function is called by:
;;		_Inicializacion
;; This function uses a non-reentrant model
;;
psect	text581
	file	"D:\SVN\Pruebav1.1\seccionador\trunk\SPI.c"
	line	17
	global	__size_of_Init_SPI
	__size_of_Init_SPI	equ	__end_of_Init_SPI-_Init_SPI
	
_Init_SPI:	
	opt	stack 14
; Regs used in _Init_SPI: [wreg+status,2+status,0]
	line	19
	
l7631:	
;SPI.c: 19: SSP2CON1bits.SSPEN = 0;
	movlb 4	; select bank4
	bcf	(541)^0200h,5	;volatile
	line	21
;SPI.c: 21: PIR4bits.SSP2IF = 0;
	movlb 0	; select bank0
	bcf	(20),0	;volatile
	line	22
;SPI.c: 22: PIR4bits.BCL2IF = 0;
	bcf	(20),1	;volatile
	line	23
;SPI.c: 23: PIE4bits.SSP2IE = 0;
	movlb 1	; select bank1
	bcf	(148)^080h,0	;volatile
	line	24
;SPI.c: 24: PIE4bits.BCL2IE = 0;
	bcf	(148)^080h,1	;volatile
	line	26
	
l7633:	
;SPI.c: 26: SSP2CON1bits.SSPM = 0b0001;
	movlb 4	; select bank4
	movf	(541)^0200h,w	;volatile
	andlw	not (((1<<4)-1)<<0)
	iorlw	(01h & ((1<<4)-1))<<0
	movwf	(541)^0200h	;volatile
	line	28
;SPI.c: 28: SSP2CON1bits.CKP = (ckp & 0x01);
	movf	(Init_SPI@ckp),w
	andlw	01h
	movwf	(??_Init_SPI+0)+0
	swapf	(??_Init_SPI+0)+0,f
	movf	(541)^0200h,w	;volatile
	xorwf	(??_Init_SPI+0)+0,w
	andlw	not (((1<<1)-1)<<4)
	xorwf	(??_Init_SPI+0)+0,w
	movwf	(541)^0200h	;volatile
	line	29
;SPI.c: 29: SSP2STATbits.CKE = (cke & 0x01);
	movf	(Init_SPI@cke),w
	andlw	01h
	movwf	(??_Init_SPI+0)+0
	swapf	(??_Init_SPI+0)+0,f
	rlf	(??_Init_SPI+0)+0,f
	rlf	(??_Init_SPI+0)+0,f
	movf	(540)^0200h,w	;volatile
	xorwf	(??_Init_SPI+0)+0,w
	andlw	not (((1<<1)-1)<<6)
	xorwf	(??_Init_SPI+0)+0,w
	movwf	(540)^0200h	;volatile
	line	31
	
l7635:	
;SPI.c: 31: SSP2STATbits.SMP = 0;
	bcf	(540)^0200h,7	;volatile
	line	32
	
l7637:	
;SPI.c: 32: SSP2CON1bits.SSPEN = 1;
	bsf	(541)^0200h,5	;volatile
	line	34
	
l5904:	
	return
	opt stack 0
GLOBAL	__end_of_Init_SPI
	__end_of_Init_SPI:
;; =============== function _Init_SPI ends ============

	signat	_Init_SPI,8312
	global	_DAC
psect	text582,local,class=CODE,delta=2
global __ptext582
__ptext582:

;; *************** function _DAC *****************
;; Defined at:
;;		line 103 in file "D:\SVN\Pruebav1.1\seccionador\trunk\Inicial.c"
;; Parameters:    Size  Location     Type
;;		None
;; Auto vars:     Size  Location     Type
;;		None
;; Return value:  Size  Location     Type
;;		None               void
;; Registers used:
;;		wreg, status,2, status,0
;; Tracked objects:
;;		On entry : 0/0
;;		On exit  : 0/0
;;		Unchanged: 0/0
;; Data sizes:     COMMON   BANK0   BANK1   BANK2   BANK3   BANK4
;;      Params:         0       0       0       0       0       0
;;      Locals:         0       0       0       0       0       0
;;      Temps:          0       0       0       0       0       0
;;      Totals:         0       0       0       0       0       0
;;Total ram usage:        0 bytes
;; Hardware stack levels used:    1
;; This function calls:
;;		Nothing
;; This function is called by:
;;		_Inicializacion
;; This function uses a non-reentrant model
;;
psect	text582
	file	"D:\SVN\Pruebav1.1\seccionador\trunk\Inicial.c"
	line	103
	global	__size_of_DAC
	__size_of_DAC	equ	__end_of_DAC-_DAC
	
_DAC:	
	opt	stack 14
; Regs used in _DAC: [wreg+status,2+status,0]
	line	104
	
l7623:	
;Inicial.c: 104: DACCON0bits.DACPSS = 0b01;
	movlb 2	; select bank2
	movf	(280)^0100h,w	;volatile
	andlw	not (((1<<2)-1)<<2)
	iorlw	(01h & ((1<<2)-1))<<2
	movwf	(280)^0100h	;volatile
	line	105
	
l7625:	
;Inicial.c: 105: DACCON0bits.DACEN = 1;
	bsf	(280)^0100h,7	;volatile
	line	106
	
l7627:	
;Inicial.c: 106: DACCON0bits.DACOE = 1;
	bsf	(280)^0100h,5	;volatile
	line	107
	
l7629:	
;Inicial.c: 107: DACCON0bits.DACLPS = 1;
	bsf	(280)^0100h,6	;volatile
	line	108
;Inicial.c: 108: DACCON1bits.DACR = 0b10000;
	movf	(281)^0100h,w	;volatile
	andlw	not (((1<<5)-1)<<0)
	iorlw	(010h & ((1<<5)-1))<<0
	movwf	(281)^0100h	;volatile
	line	109
	
l2937:	
	return
	opt stack 0
GLOBAL	__end_of_DAC
	__end_of_DAC:
;; =============== function _DAC ends ============

	signat	_DAC,88
	global	_SelectReenganches
psect	text583,local,class=CODE,delta=2
global __ptext583
__ptext583:

;; *************** function _SelectReenganches *****************
;; Defined at:
;;		line 84 in file "D:\SVN\Pruebav1.1\seccionador\trunk\Inicial.c"
;; Parameters:    Size  Location     Type
;;		None
;; Auto vars:     Size  Location     Type
;;  posicion        2    8[COMMON] int 
;;  a1              2    6[COMMON] int 
;;  a0              2    4[COMMON] int 
;; Return value:  Size  Location     Type
;;                  2    0[COMMON] int 
;; Registers used:
;;		wreg, status,2, status,0
;; Tracked objects:
;;		On entry : 0/0
;;		On exit  : 0/0
;;		Unchanged: 0/0
;; Data sizes:     COMMON   BANK0   BANK1   BANK2   BANK3   BANK4
;;      Params:         2       0       0       0       0       0
;;      Locals:         6       0       0       0       0       0
;;      Temps:          2       0       0       0       0       0
;;      Totals:        10       0       0       0       0       0
;;Total ram usage:       10 bytes
;; Hardware stack levels used:    1
;; This function calls:
;;		Nothing
;; This function is called by:
;;		_Inicializacion
;; This function uses a non-reentrant model
;;
psect	text583
	file	"D:\SVN\Pruebav1.1\seccionador\trunk\Inicial.c"
	line	84
	global	__size_of_SelectReenganches
	__size_of_SelectReenganches	equ	__end_of_SelectReenganches-_SelectReenganches
	
_SelectReenganches:	
	opt	stack 14
; Regs used in _SelectReenganches: [wreg+status,2+status,0]
	line	85
	
l7611:	
;Inicial.c: 85: int posicion = 0;
	clrf	(SelectReenganches@posicion)
	clrf	(SelectReenganches@posicion+1)
	line	86
	
l7613:	
;Inicial.c: 86: int a0 = RA3;
	clrc
	movlb 0	; select bank0
	btfsc	(99/8),(99)&7
	setc
	movlw	0
	addwfc	wreg,w
	movwf	(??_SelectReenganches+0)+0
	clrf	(??_SelectReenganches+0)+0+1
	movf	0+(??_SelectReenganches+0)+0,w
	movwf	(SelectReenganches@a0)
	movf	1+(??_SelectReenganches+0)+0,w
	movwf	(SelectReenganches@a0+1)
	line	87
	
l7615:	
;Inicial.c: 87: int a1 = RA4<<1;
	clrc
	btfsc	(100/8),(100)&7
	setc
	movlw	0
	addwfc	wreg,w
	movwf	(??_SelectReenganches+0)+0
	clrf	(??_SelectReenganches+0)+0+1
	movlw	01h
u2775:
	lslf	(??_SelectReenganches+0)+0,f
	rlf	(??_SelectReenganches+0)+1,f
	decfsz	wreg,f
	goto	u2775
	movf	0+(??_SelectReenganches+0)+0,w
	movwf	(SelectReenganches@a1)
	movf	1+(??_SelectReenganches+0)+0,w
	movwf	(SelectReenganches@a1+1)
	line	89
	
l7617:	
;Inicial.c: 89: posicion = a0 + a1 + 1;
	movf	(SelectReenganches@a1),w
	addwf	(SelectReenganches@a0),w
	movwf	(??_SelectReenganches+0)+0
	movf	(SelectReenganches@a1+1),w
	addwfc	(SelectReenganches@a0+1),w
	movwf	1+(??_SelectReenganches+0)+0
	movf	0+(??_SelectReenganches+0)+0,w
	addlw	low(01h)
	movwf	(SelectReenganches@posicion)
	movlw	high(01h)
	addwfc	1+(??_SelectReenganches+0)+0,w
	movwf	1+(SelectReenganches@posicion)
	line	91
	
l7619:	
;Inicial.c: 91: return posicion;
	movf	(SelectReenganches@posicion+1),w
	clrf	(?_SelectReenganches+1)
	addwf	(?_SelectReenganches+1)
	movf	(SelectReenganches@posicion),w
	clrf	(?_SelectReenganches)
	addwf	(?_SelectReenganches)

	goto	l2934
	
l7621:	
	line	92
	
l2934:	
	return
	opt stack 0
GLOBAL	__end_of_SelectReenganches
	__end_of_SelectReenganches:
;; =============== function _SelectReenganches ends ============

	signat	_SelectReenganches,90
	global	_SelectIntensidad
psect	text584,local,class=CODE,delta=2
global __ptext584
__ptext584:

;; *************** function _SelectIntensidad *****************
;; Defined at:
;;		line 64 in file "D:\SVN\Pruebav1.1\seccionador\trunk\Inicial.c"
;; Parameters:    Size  Location     Type
;;		None
;; Auto vars:     Size  Location     Type
;;  posicion        2    8[BANK0 ] int 
;;  b3              2    6[BANK0 ] int 
;;  b2              2    4[BANK0 ] int 
;;  b1              2    2[BANK0 ] int 
;;  b0              2    0[BANK0 ] int 
;; Return value:  Size  Location     Type
;;                  2    0[COMMON] int 
;; Registers used:
;;		wreg, status,2, status,0
;; Tracked objects:
;;		On entry : 0/0
;;		On exit  : 0/0
;;		Unchanged: 0/0
;; Data sizes:     COMMON   BANK0   BANK1   BANK2   BANK3   BANK4
;;      Params:         2       0       0       0       0       0
;;      Locals:         0      10       0       0       0       0
;;      Temps:          4       0       0       0       0       0
;;      Totals:         6      10       0       0       0       0
;;Total ram usage:       16 bytes
;; Hardware stack levels used:    1
;; This function calls:
;;		Nothing
;; This function is called by:
;;		_Inicializacion
;; This function uses a non-reentrant model
;;
psect	text584
	file	"D:\SVN\Pruebav1.1\seccionador\trunk\Inicial.c"
	line	64
	global	__size_of_SelectIntensidad
	__size_of_SelectIntensidad	equ	__end_of_SelectIntensidad-_SelectIntensidad
	
_SelectIntensidad:	
	opt	stack 14
; Regs used in _SelectIntensidad: [wreg+status,2+status,0]
	line	65
	
l7595:	
;Inicial.c: 65: int posicion = 0;
	movlb 0	; select bank0
	clrf	(SelectIntensidad@posicion)
	clrf	(SelectIntensidad@posicion+1)
	line	66
	
l7597:	
;Inicial.c: 66: int b0 = RB0;
	clrc
	btfsc	(104/8),(104)&7
	setc
	movlw	0
	addwfc	wreg,w
	movwf	(??_SelectIntensidad+0)+0
	clrf	(??_SelectIntensidad+0)+0+1
	movf	0+(??_SelectIntensidad+0)+0,w
	movwf	(SelectIntensidad@b0)
	movf	1+(??_SelectIntensidad+0)+0,w
	movwf	(SelectIntensidad@b0+1)
	line	67
	
l7599:	
;Inicial.c: 67: int b1 = RB1<<1;
	clrc
	btfsc	(105/8),(105)&7
	setc
	movlw	0
	addwfc	wreg,w
	movwf	(??_SelectIntensidad+0)+0
	clrf	(??_SelectIntensidad+0)+0+1
	movlw	01h
u2745:
	lslf	(??_SelectIntensidad+0)+0,f
	rlf	(??_SelectIntensidad+0)+1,f
	decfsz	wreg,f
	goto	u2745
	movf	0+(??_SelectIntensidad+0)+0,w
	movwf	(SelectIntensidad@b1)
	movf	1+(??_SelectIntensidad+0)+0,w
	movwf	(SelectIntensidad@b1+1)
	line	68
	
l7601:	
;Inicial.c: 68: int b2 = RB2<<2;
	clrc
	btfsc	(106/8),(106)&7
	setc
	movlw	0
	addwfc	wreg,w
	movwf	(??_SelectIntensidad+0)+0
	clrf	(??_SelectIntensidad+0)+0+1
	movlw	02h
u2755:
	lslf	(??_SelectIntensidad+0)+0,f
	rlf	(??_SelectIntensidad+0)+1,f
	decfsz	wreg,f
	goto	u2755
	movf	0+(??_SelectIntensidad+0)+0,w
	movwf	(SelectIntensidad@b2)
	movf	1+(??_SelectIntensidad+0)+0,w
	movwf	(SelectIntensidad@b2+1)
	line	69
	
l7603:	
;Inicial.c: 69: int b3 = RB3<<3;
	clrc
	btfsc	(107/8),(107)&7
	setc
	movlw	0
	addwfc	wreg,w
	movwf	(??_SelectIntensidad+0)+0
	clrf	(??_SelectIntensidad+0)+0+1
	movlw	03h
u2765:
	lslf	(??_SelectIntensidad+0)+0,f
	rlf	(??_SelectIntensidad+0)+1,f
	decfsz	wreg,f
	goto	u2765
	movf	0+(??_SelectIntensidad+0)+0,w
	movwf	(SelectIntensidad@b3)
	movf	1+(??_SelectIntensidad+0)+0,w
	movwf	(SelectIntensidad@b3+1)
	line	71
	
l7605:	
;Inicial.c: 71: posicion = b0 + b1 + b2 + b3;
	movf	(SelectIntensidad@b1),w
	addwf	(SelectIntensidad@b0),w
	movwf	(??_SelectIntensidad+0)+0
	movf	(SelectIntensidad@b1+1),w
	addwfc	(SelectIntensidad@b0+1),w
	movwf	1+(??_SelectIntensidad+0)+0
	movf	(SelectIntensidad@b2),w
	addwf	0+(??_SelectIntensidad+0)+0,w
	movwf	(??_SelectIntensidad+2)+0
	movf	(SelectIntensidad@b2+1),w
	addwfc	1+(??_SelectIntensidad+0)+0,w
	movwf	1+(??_SelectIntensidad+2)+0
	movf	(SelectIntensidad@b3),w
	addwf	0+(??_SelectIntensidad+2)+0,w
	movwf	(SelectIntensidad@posicion)
	movf	(SelectIntensidad@b3+1),w
	addwfc	1+(??_SelectIntensidad+2)+0,w
	movwf	1+(SelectIntensidad@posicion)
	line	73
	
l7607:	
;Inicial.c: 73: return posicion;
	movf	(SelectIntensidad@posicion+1),w
	clrf	(?_SelectIntensidad+1)
	addwf	(?_SelectIntensidad+1)
	movf	(SelectIntensidad@posicion),w
	clrf	(?_SelectIntensidad)
	addwf	(?_SelectIntensidad)

	goto	l2931
	
l7609:	
	line	74
	
l2931:	
	return
	opt stack 0
GLOBAL	__end_of_SelectIntensidad
	__end_of_SelectIntensidad:
;; =============== function _SelectIntensidad ends ============

	signat	_SelectIntensidad,90
	global	_Init_FVR
psect	text585,local,class=CODE,delta=2
global __ptext585
__ptext585:

;; *************** function _Init_FVR *****************
;; Defined at:
;;		line 48 in file "D:\SVN\Pruebav1.1\seccionador\trunk\Inicial.c"
;; Parameters:    Size  Location     Type
;;		None
;; Auto vars:     Size  Location     Type
;;		None
;; Return value:  Size  Location     Type
;;		None               void
;; Registers used:
;;		wreg, status,2, status,0
;; Tracked objects:
;;		On entry : 0/0
;;		On exit  : 0/0
;;		Unchanged: 0/0
;; Data sizes:     COMMON   BANK0   BANK1   BANK2   BANK3   BANK4
;;      Params:         0       0       0       0       0       0
;;      Locals:         0       0       0       0       0       0
;;      Temps:          0       0       0       0       0       0
;;      Totals:         0       0       0       0       0       0
;;Total ram usage:        0 bytes
;; Hardware stack levels used:    1
;; This function calls:
;;		Nothing
;; This function is called by:
;;		_Inicializacion
;; This function uses a non-reentrant model
;;
psect	text585
	file	"D:\SVN\Pruebav1.1\seccionador\trunk\Inicial.c"
	line	48
	global	__size_of_Init_FVR
	__size_of_Init_FVR	equ	__end_of_Init_FVR-_Init_FVR
	
_Init_FVR:	
	opt	stack 14
; Regs used in _Init_FVR: [wreg+status,2+status,0]
	line	49
	
l7591:	
;Inicial.c: 49: FVRCONbits.CDAFVR = 0b01;
	movlb 2	; select bank2
	movf	(279)^0100h,w	;volatile
	andlw	not (((1<<2)-1)<<2)
	iorlw	(01h & ((1<<2)-1))<<2
	movwf	(279)^0100h	;volatile
	line	50
;Inicial.c: 50: FVRCONbits.ADFVR = 0b01;
	movf	(279)^0100h,w	;volatile
	andlw	not (((1<<2)-1)<<0)
	iorlw	(01h & ((1<<2)-1))<<0
	movwf	(279)^0100h	;volatile
	line	51
	
l7593:	
;Inicial.c: 51: FVRCONbits.FVREN = 1;
	bsf	(279)^0100h,7	;volatile
	line	53
	
l2928:	
	return
	opt stack 0
GLOBAL	__end_of_Init_FVR
	__end_of_Init_FVR:
;; =============== function _Init_FVR ends ============

	signat	_Init_FVR,88
	global	_Init_IO
psect	text586,local,class=CODE,delta=2
global __ptext586
__ptext586:

;; *************** function _Init_IO *****************
;; Defined at:
;;		line 29 in file "D:\SVN\Pruebav1.1\seccionador\trunk\Inicial.c"
;; Parameters:    Size  Location     Type
;;		None
;; Auto vars:     Size  Location     Type
;;		None
;; Return value:  Size  Location     Type
;;		None               void
;; Registers used:
;;		wreg, status,2
;; Tracked objects:
;;		On entry : 0/0
;;		On exit  : 0/0
;;		Unchanged: 0/0
;; Data sizes:     COMMON   BANK0   BANK1   BANK2   BANK3   BANK4
;;      Params:         0       0       0       0       0       0
;;      Locals:         0       0       0       0       0       0
;;      Temps:          0       0       0       0       0       0
;;      Totals:         0       0       0       0       0       0
;;Total ram usage:        0 bytes
;; Hardware stack levels used:    1
;; This function calls:
;;		Nothing
;; This function is called by:
;;		_Inicializacion
;; This function uses a non-reentrant model
;;
psect	text586
	file	"D:\SVN\Pruebav1.1\seccionador\trunk\Inicial.c"
	line	29
	global	__size_of_Init_IO
	__size_of_Init_IO	equ	__end_of_Init_IO-_Init_IO
	
_Init_IO:	
	opt	stack 14
; Regs used in _Init_IO: [wreg+status,2]
	line	30
	
l7581:	
;Inicial.c: 30: TRISA = 0b00111010;
	movlw	(03Ah)
	movlb 1	; select bank1
	movwf	(140)^080h	;volatile
	line	31
;Inicial.c: 31: TRISB = 0b00001111;
	movlw	(0Fh)
	movwf	(141)^080h	;volatile
	line	33
	
l7583:	
;Inicial.c: 33: ANSELB = 0b00000;
	movlb 3	; select bank3
	clrf	(397)^0180h	;volatile
	line	34
	
l7585:	
;Inicial.c: 34: ANSA3 = 0;
	bcf	(3171/8)^0180h,(3171)&7
	line	35
	
l7587:	
;Inicial.c: 35: ANSA4 = 0;
	bcf	(3172/8)^0180h,(3172)&7
	line	37
	
l7589:	
;Inicial.c: 37: LATA7 = 0;
	movlb 2	; select bank2
	bcf	(2151/8)^0100h,(2151)&7
	line	38
	
l2925:	
	return
	opt stack 0
GLOBAL	__end_of_Init_IO
	__end_of_Init_IO:
;; =============== function _Init_IO ends ============

	signat	_Init_IO,88
	global	_Init_Config
psect	text587,local,class=CODE,delta=2
global __ptext587
__ptext587:

;; *************** function _Init_Config *****************
;; Defined at:
;;		line 14 in file "D:\SVN\Pruebav1.1\seccionador\trunk\Inicial.c"
;; Parameters:    Size  Location     Type
;;		None
;; Auto vars:     Size  Location     Type
;;		None
;; Return value:  Size  Location     Type
;;		None               void
;; Registers used:
;;		wreg, status,2, status,0
;; Tracked objects:
;;		On entry : 0/0
;;		On exit  : 0/0
;;		Unchanged: 0/0
;; Data sizes:     COMMON   BANK0   BANK1   BANK2   BANK3   BANK4
;;      Params:         0       0       0       0       0       0
;;      Locals:         0       0       0       0       0       0
;;      Temps:          0       0       0       0       0       0
;;      Totals:         0       0       0       0       0       0
;;Total ram usage:        0 bytes
;; Hardware stack levels used:    1
;; This function calls:
;;		Nothing
;; This function is called by:
;;		_Inicializacion
;; This function uses a non-reentrant model
;;
psect	text587
	file	"D:\SVN\Pruebav1.1\seccionador\trunk\Inicial.c"
	line	14
	global	__size_of_Init_Config
	__size_of_Init_Config	equ	__end_of_Init_Config-_Init_Config
	
_Init_Config:	
	opt	stack 14
; Regs used in _Init_Config: [wreg+status,2+status,0]
	line	15
	
l7579:	
;Inicial.c: 15: OSCCONbits.SCS = 0b00;
	movlw	((0 & ((1<<2)-1))<<0)|not (((1<<2)-1)<<0)
	movlb 1	; select bank1
	andwf	(153)^080h,f	;volatile
	line	16
;Inicial.c: 16: OSCCONbits.IRCF = 0b0111;
	movf	(153)^080h,w	;volatile
	andlw	not (((1<<4)-1)<<3)
	iorlw	(07h & ((1<<4)-1))<<3
	movwf	(153)^080h	;volatile
	line	17
;Inicial.c: 17: WDTCONbits.WDTPS = 0b00000;
	movlw	((0 & ((1<<5)-1))<<1)|not (((1<<5)-1)<<1)
	andwf	(151)^080h,f	;volatile
	line	18
	
l2922:	
	return
	opt stack 0
GLOBAL	__end_of_Init_Config
	__end_of_Init_Config:
;; =============== function _Init_Config ends ============

	signat	_Init_Config,88
	global	_Inductancia
psect	text588,local,class=CODE,delta=2
global __ptext588
__ptext588:

;; *************** function _Inductancia *****************
;; Defined at:
;;		line 199 in file "D:\SVN\Pruebav1.1\seccionador\trunk\ADC.c"
;; Parameters:    Size  Location     Type
;;  ADCResultado    2    0[COMMON] int 
;; Auto vars:     Size  Location     Type
;;		None
;; Return value:  Size  Location     Type
;;                  2    0[COMMON] int 
;; Registers used:
;;		wreg, status,2, btemp+1
;; Tracked objects:
;;		On entry : 0/0
;;		On exit  : 0/0
;;		Unchanged: 0/0
;; Data sizes:     COMMON   BANK0   BANK1   BANK2   BANK3   BANK4
;;      Params:         2       0       0       0       0       0
;;      Locals:         0       0       0       0       0       0
;;      Temps:          0       0       0       0       0       0
;;      Totals:         2       0       0       0       0       0
;;Total ram usage:        2 bytes
;; Hardware stack levels used:    1
;; This function calls:
;;		Nothing
;; This function is called by:
;;		_ConexionInductancia
;; This function uses a non-reentrant model
;;
psect	text588
	file	"D:\SVN\Pruebav1.1\seccionador\trunk\ADC.c"
	line	199
	global	__size_of_Inductancia
	__size_of_Inductancia	equ	__end_of_Inductancia-_Inductancia
	
_Inductancia:	
	opt	stack 13
; Regs used in _Inductancia: [wreg+status,2+btemp+1]
	line	200
	
l7565:	
;ADC.c: 200: if(ADCResultado >= 0b1000011010 || ADCResultado <= 0b0111100110){
	movf	(Inductancia@ADCResultado+1),w
	xorlw	80h
	movwf	btemp+1
	movlw	(high(021Ah))^80h
	subwf	btemp+1,w
	skipz
	goto	u2725
	movlw	low(021Ah)
	subwf	(Inductancia@ADCResultado),w
u2725:

	skipnc
	goto	u2721
	goto	u2720
u2721:
	goto	l7569
u2720:
	
l7567:	
	movf	(Inductancia@ADCResultado+1),w
	xorlw	80h
	movwf	btemp+1
	movlw	(high(01E7h))^80h
	subwf	btemp+1,w
	skipz
	goto	u2735
	movlw	low(01E7h)
	subwf	(Inductancia@ADCResultado),w
u2735:

	skipnc
	goto	u2731
	goto	u2730
u2731:
	goto	l7575
u2730:
	goto	l7569
	
l1491:	
	line	202
	
l7569:	
;ADC.c: 202: return 1;
	movlw	low(01h)
	movwf	(?_Inductancia)
	movlw	high(01h)
	movwf	((?_Inductancia))+1
	goto	l1492
	
l7571:	
	goto	l1492
	line	203
	
l7573:	
;ADC.c: 203: }
	goto	l1492
	line	204
	
l1489:	
	
l7575:	
;ADC.c: 204: else return 0;
	clrf	(?_Inductancia)
	clrf	(?_Inductancia+1)
	goto	l1492
	
l7577:	
	goto	l1492
	
l1493:	
	line	205
	
l1492:	
	return
	opt stack 0
GLOBAL	__end_of_Inductancia
	__end_of_Inductancia:
;; =============== function _Inductancia ends ============

	signat	_Inductancia,4218
	global	_Valor4
psect	text589,local,class=CODE,delta=2
global __ptext589
__ptext589:

;; *************** function _Valor4 *****************
;; Defined at:
;;		line 134 in file "D:\SVN\Pruebav1.1\seccionador\trunk\ADC.c"
;; Parameters:    Size  Location     Type
;;  result          2    0[COMMON] int 
;; Auto vars:     Size  Location     Type
;;  i               2    6[COMMON] int 
;;  suma            2    4[COMMON] int 
;; Return value:  Size  Location     Type
;;                  2    0[COMMON] int 
;; Registers used:
;;		wreg, fsr1l, fsr1h, status,2, status,0, btemp+1
;; Tracked objects:
;;		On entry : 0/0
;;		On exit  : 0/0
;;		Unchanged: 0/0
;; Data sizes:     COMMON   BANK0   BANK1   BANK2   BANK3   BANK4
;;      Params:         2       0       0       0       0       0
;;      Locals:         4       0       0       0       0       0
;;      Temps:          2       0       0       0       0       0
;;      Totals:         8       0       0       0       0       0
;;Total ram usage:        8 bytes
;; Hardware stack levels used:    1
;; This function calls:
;;		Nothing
;; This function is called by:
;;		_GestionADC
;; This function uses a non-reentrant model
;;
psect	text589
	file	"D:\SVN\Pruebav1.1\seccionador\trunk\ADC.c"
	line	134
	global	__size_of_Valor4
	__size_of_Valor4	equ	__end_of_Valor4-_Valor4
	
_Valor4:	
	opt	stack 14
; Regs used in _Valor4: [wreg+fsr1l-status,0+btemp+1]
	line	135
	
l7533:	
;ADC.c: 135: int suma = 0;
	clrf	(Valor4@suma)
	clrf	(Valor4@suma+1)
	line	136
	
l7535:	
;ADC.c: 136: t[j] = result;
	movlb 0	; select bank0
	movf	(_j),w
	addwf	wreg,w
	addlw	_t&0ffh
	movwf	fsr1l
	clrf fsr1h	
	
	movf	(Valor4@result),w
	movwi	[0]fsr1
	movf	(Valor4@result+1),w
	movwi	[1]fsr1
	line	137
	
l7537:	
;ADC.c: 137: j++;
	movlw	low(01h)
	addwf	(_j),f
	movlw	high(01h)
	addwfc	(_j+1),f
	line	138
	
l7539:	
;ADC.c: 138: if(j == 3){
	movlw	03h
	xorwf	(_j),w
	iorwf	(_j+1),w
	skipz
	goto	u2671
	goto	u2670
u2671:
	goto	l7543
u2670:
	line	139
	
l7541:	
;ADC.c: 139: j = 0;
	clrf	(_j)
	clrf	(_j+1)
	line	140
;ADC.c: 140: j_seg = 0;
	clrf	(_j_seg)
	clrf	(_j_seg+1)
	goto	l7543
	line	141
	
l1474:	
	line	142
	
l7543:	
;ADC.c: 141: }
;ADC.c: 142: for (int i = -1; i < 4; i++)
	movlw	low(-1)
	movwf	(Valor4@i)
	movlw	high(-1)
	movwf	((Valor4@i))+1
	
l7545:	
	movf	(Valor4@i+1),w
	xorlw	80h
	movwf	btemp+1
	movlw	(high(04h))^80h
	subwf	btemp+1,w
	skipz
	goto	u2685
	movlw	low(04h)
	subwf	(Valor4@i),w
u2685:

	skipc
	goto	u2681
	goto	u2680
u2681:
	goto	l7549
u2680:
	goto	l7555
	
l7547:	
	goto	l7555
	line	143
	
l1475:	
	line	144
	
l7549:	
;ADC.c: 143: {
;ADC.c: 144: suma += s[i];
	movf	(Valor4@i),w
	addwf	wreg,w
	addlw	_s&0ffh
	movwf	fsr1l
	clrf fsr1h	
	
	moviw	[0]fsr1
	movwf	(??_Valor4+0)+0
	moviw	[1]fsr1
	movwf	(??_Valor4+0)+0+1
	movf	0+(??_Valor4+0)+0,w
	addwf	(Valor4@suma),f
	movf	1+(??_Valor4+0)+0,w
	addwfc	(Valor4@suma+1),f
	line	142
	
l7551:	
	movlw	low(01h)
	addwf	(Valor4@i),f
	movlw	high(01h)
	addwfc	(Valor4@i+1),f
	
l7553:	
	movf	(Valor4@i+1),w
	xorlw	80h
	movwf	btemp+1
	movlw	(high(04h))^80h
	subwf	btemp+1,w
	skipz
	goto	u2695
	movlw	low(04h)
	subwf	(Valor4@i),w
u2695:

	skipc
	goto	u2691
	goto	u2690
u2691:
	goto	l7549
u2690:
	goto	l7555
	
l1476:	
	line	146
	
l7555:	
;ADC.c: 145: }
;ADC.c: 146: if(j_seg) suma = 530;
	movlb 0	; select bank0
	movf	(_j_seg+1),w
	iorwf	(_j_seg),w
	skipnz
	goto	u2701
	goto	u2700
u2701:
	goto	l7559
u2700:
	
l7557:	
	movlw	low(0212h)
	movwf	(Valor4@suma)
	movlw	high(0212h)
	movwf	((Valor4@suma))+1
	goto	l7561
	line	147
	
l1477:	
	
l7559:	
;ADC.c: 147: else suma = suma >> 2;
	movf	(Valor4@suma+1),w
	movwf	(??_Valor4+0)+0+1
	movf	(Valor4@suma),w
	movwf	(??_Valor4+0)+0
	movlw	02h
	movwf	btemp+1
u2715:
	rlf	(??_Valor4+0)+1,w
	rrf	(??_Valor4+0)+1,f
	rrf	(??_Valor4+0)+0,f
	decfsz	btemp+1,f
	goto	u2715
	movf	0+(??_Valor4+0)+0,w
	movwf	(Valor4@suma)
	movf	1+(??_Valor4+0)+0,w
	movwf	(Valor4@suma+1)
	goto	l7561
	
l1478:	
	line	148
	
l7561:	
;ADC.c: 148: return suma;
	movf	(Valor4@suma+1),w
	clrf	(?_Valor4+1)
	addwf	(?_Valor4+1)
	movf	(Valor4@suma),w
	clrf	(?_Valor4)
	addwf	(?_Valor4)

	goto	l1479
	
l7563:	
	line	149
	
l1479:	
	return
	opt stack 0
GLOBAL	__end_of_Valor4
	__end_of_Valor4:
;; =============== function _Valor4 ends ============

	signat	_Valor4,4218
	global	_GainConversion
psect	text590,local,class=CODE,delta=2
global __ptext590
__ptext590:

;; *************** function _GainConversion *****************
;; Defined at:
;;		line 110 in file "D:\SVN\Pruebav1.1\seccionador\trunk\ADC.c"
;; Parameters:    Size  Location     Type
;;  a               2    0[COMMON] int 
;;  ganancia        2    2[COMMON] int 
;; Auto vars:     Size  Location     Type
;;		None
;; Return value:  Size  Location     Type
;;                  2    0[COMMON] int 
;; Registers used:
;;		wreg
;; Tracked objects:
;;		On entry : 0/0
;;		On exit  : 0/0
;;		Unchanged: 0/0
;; Data sizes:     COMMON   BANK0   BANK1   BANK2   BANK3   BANK4
;;      Params:         4       0       0       0       0       0
;;      Locals:         0       0       0       0       0       0
;;      Temps:          2       0       0       0       0       0
;;      Totals:         6       0       0       0       0       0
;;Total ram usage:        6 bytes
;; Hardware stack levels used:    1
;; This function calls:
;;		Nothing
;; This function is called by:
;;		_GestionADC
;; This function uses a non-reentrant model
;;
psect	text590
	file	"D:\SVN\Pruebav1.1\seccionador\trunk\ADC.c"
	line	110
	global	__size_of_GainConversion
	__size_of_GainConversion	equ	__end_of_GainConversion-_GainConversion
	
_GainConversion:	
	opt	stack 14
; Regs used in _GainConversion: [wreg]
	line	111
	
l7517:	
;ADC.c: 111: if(ganancia == 2) a = a << 1;
	movlw	02h
	xorwf	(GainConversion@ganancia),w
	iorwf	(GainConversion@ganancia+1),w
	skipz
	goto	u2571
	goto	u2570
u2571:
	goto	l1466
u2570:
	
l7519:	
	movf	(GainConversion@a+1),w
	movwf	(??_GainConversion+0)+0+1
	movf	(GainConversion@a),w
	movwf	(??_GainConversion+0)+0
	movlw	01h
u2585:
	lslf	(??_GainConversion+0)+0,f
	rlf	(??_GainConversion+0)+1,f
	decfsz	wreg,f
	goto	u2585
	movf	0+(??_GainConversion+0)+0,w
	movwf	(GainConversion@a)
	movf	1+(??_GainConversion+0)+0,w
	movwf	(GainConversion@a+1)
	
l1466:	
	line	112
;ADC.c: 112: if(ganancia == 4) a = a << 2;
	movlw	04h
	xorwf	(GainConversion@ganancia),w
	iorwf	(GainConversion@ganancia+1),w
	skipz
	goto	u2591
	goto	u2590
u2591:
	goto	l1467
u2590:
	
l7521:	
	movf	(GainConversion@a+1),w
	movwf	(??_GainConversion+0)+0+1
	movf	(GainConversion@a),w
	movwf	(??_GainConversion+0)+0
	movlw	02h
u2605:
	lslf	(??_GainConversion+0)+0,f
	rlf	(??_GainConversion+0)+1,f
	decfsz	wreg,f
	goto	u2605
	movf	0+(??_GainConversion+0)+0,w
	movwf	(GainConversion@a)
	movf	1+(??_GainConversion+0)+0,w
	movwf	(GainConversion@a+1)
	
l1467:	
	line	113
;ADC.c: 113: if(ganancia == 8) a = a << 3;
	movlw	08h
	xorwf	(GainConversion@ganancia),w
	iorwf	(GainConversion@ganancia+1),w
	skipz
	goto	u2611
	goto	u2610
u2611:
	goto	l1468
u2610:
	
l7523:	
	movf	(GainConversion@a+1),w
	movwf	(??_GainConversion+0)+0+1
	movf	(GainConversion@a),w
	movwf	(??_GainConversion+0)+0
	movlw	03h
u2625:
	lslf	(??_GainConversion+0)+0,f
	rlf	(??_GainConversion+0)+1,f
	decfsz	wreg,f
	goto	u2625
	movf	0+(??_GainConversion+0)+0,w
	movwf	(GainConversion@a)
	movf	1+(??_GainConversion+0)+0,w
	movwf	(GainConversion@a+1)
	
l1468:	
	line	114
;ADC.c: 114: if(ganancia == 16) a = a << 4;
	movlw	010h
	xorwf	(GainConversion@ganancia),w
	iorwf	(GainConversion@ganancia+1),w
	skipz
	goto	u2631
	goto	u2630
u2631:
	goto	l1469
u2630:
	
l7525:	
	movf	(GainConversion@a+1),w
	movwf	(??_GainConversion+0)+0+1
	movf	(GainConversion@a),w
	movwf	(??_GainConversion+0)+0
	movlw	04h
u2645:
	lslf	(??_GainConversion+0)+0,f
	rlf	(??_GainConversion+0)+1,f
	decfsz	wreg,f
	goto	u2645
	movf	0+(??_GainConversion+0)+0,w
	movwf	(GainConversion@a)
	movf	1+(??_GainConversion+0)+0,w
	movwf	(GainConversion@a+1)
	
l1469:	
	line	115
;ADC.c: 115: if(ganancia == 32) a = a << 5;
	movlw	020h
	xorwf	(GainConversion@ganancia),w
	iorwf	(GainConversion@ganancia+1),w
	skipz
	goto	u2651
	goto	u2650
u2651:
	goto	l7529
u2650:
	
l7527:	
	movf	(GainConversion@a+1),w
	movwf	(??_GainConversion+0)+0+1
	movf	(GainConversion@a),w
	movwf	(??_GainConversion+0)+0
	movlw	05h
u2665:
	lslf	(??_GainConversion+0)+0,f
	rlf	(??_GainConversion+0)+1,f
	decfsz	wreg,f
	goto	u2665
	movf	0+(??_GainConversion+0)+0,w
	movwf	(GainConversion@a)
	movf	1+(??_GainConversion+0)+0,w
	movwf	(GainConversion@a+1)
	goto	l7529
	
l1470:	
	line	117
	
l7529:	
;ADC.c: 117: return a;
	goto	l1471
	
l7531:	
	line	118
	
l1471:	
	return
	opt stack 0
GLOBAL	__end_of_GainConversion
	__end_of_GainConversion:
;; =============== function _GainConversion ends ============

	signat	_GainConversion,8314
	global	_ValorAbsoluto
psect	text591,local,class=CODE,delta=2
global __ptext591
__ptext591:

;; *************** function _ValorAbsoluto *****************
;; Defined at:
;;		line 92 in file "D:\SVN\Pruebav1.1\seccionador\trunk\ADC.c"
;; Parameters:    Size  Location     Type
;;  valorADC        2    0[COMMON] int 
;; Auto vars:     Size  Location     Type
;;		None
;; Return value:  Size  Location     Type
;;                  2    0[COMMON] int 
;; Registers used:
;;		wreg, status,2, status,0, btemp+1
;; Tracked objects:
;;		On entry : 0/0
;;		On exit  : 0/0
;;		Unchanged: 0/0
;; Data sizes:     COMMON   BANK0   BANK1   BANK2   BANK3   BANK4
;;      Params:         2       0       0       0       0       0
;;      Locals:         0       0       0       0       0       0
;;      Temps:          2       0       0       0       0       0
;;      Totals:         4       0       0       0       0       0
;;Total ram usage:        4 bytes
;; Hardware stack levels used:    1
;; This function calls:
;;		Nothing
;; This function is called by:
;;		_GestionADC
;; This function uses a non-reentrant model
;;
psect	text591
	file	"D:\SVN\Pruebav1.1\seccionador\trunk\ADC.c"
	line	92
	global	__size_of_ValorAbsoluto
	__size_of_ValorAbsoluto	equ	__end_of_ValorAbsoluto-_ValorAbsoluto
	
_ValorAbsoluto:	
	opt	stack 14
; Regs used in _ValorAbsoluto: [wreg+status,2+status,0+btemp+1]
	line	93
	
l7509:	
;ADC.c: 93: if(valorADC < 0b1000000000) valorADC = 0b1111111111 - valorADC;
	movf	(ValorAbsoluto@valorADC+1),w
	xorlw	80h
	movwf	btemp+1
	movlw	(high(0200h))^80h
	subwf	btemp+1,w
	skipz
	goto	u2565
	movlw	low(0200h)
	subwf	(ValorAbsoluto@valorADC),w
u2565:

	skipnc
	goto	u2561
	goto	u2560
u2561:
	goto	l7513
u2560:
	
l7511:	
	comf	(ValorAbsoluto@valorADC),w
	movwf	(??_ValorAbsoluto+0)+0
	comf	(ValorAbsoluto@valorADC+1),w
	movwf	((??_ValorAbsoluto+0)+0+1)
	incf	(??_ValorAbsoluto+0)+0,f
	skipnz
	incf	((??_ValorAbsoluto+0)+0+1),f
	movf	0+(??_ValorAbsoluto+0)+0,w
	addlw	low(03FFh)
	movwf	(ValorAbsoluto@valorADC)
	movlw	high(03FFh)
	addwfc	1+(??_ValorAbsoluto+0)+0,w
	movwf	1+(ValorAbsoluto@valorADC)
	goto	l7513
	
l1462:	
	line	94
	
l7513:	
;ADC.c: 94: return valorADC;
	goto	l1463
	
l7515:	
	line	95
	
l1463:	
	return
	opt stack 0
GLOBAL	__end_of_ValorAbsoluto
	__end_of_ValorAbsoluto:
;; =============== function _ValorAbsoluto ends ============

	signat	_ValorAbsoluto,4218
	global	_ADC
psect	text592,local,class=CODE,delta=2
global __ptext592
__ptext592:

;; *************** function _ADC *****************
;; Defined at:
;;		line 35 in file "D:\SVN\Pruebav1.1\seccionador\trunk\ADC.c"
;; Parameters:    Size  Location     Type
;;		None
;; Auto vars:     Size  Location     Type
;;  result          2    2[COMMON] int 
;; Return value:  Size  Location     Type
;;                  2    0[COMMON] int 
;; Registers used:
;;		wreg, status,2, status,0
;; Tracked objects:
;;		On entry : 0/0
;;		On exit  : 0/0
;;		Unchanged: 0/0
;; Data sizes:     COMMON   BANK0   BANK1   BANK2   BANK3   BANK4
;;      Params:         2       0       0       0       0       0
;;      Locals:         2       0       0       0       0       0
;;      Temps:          0       0       0       0       0       0
;;      Totals:         4       0       0       0       0       0
;;Total ram usage:        4 bytes
;; Hardware stack levels used:    1
;; This function calls:
;;		Nothing
;; This function is called by:
;;		_GestionADC
;; This function uses a non-reentrant model
;;
psect	text592
	file	"D:\SVN\Pruebav1.1\seccionador\trunk\ADC.c"
	line	35
	global	__size_of_ADC
	__size_of_ADC	equ	__end_of_ADC-_ADC
	
_ADC:	
	opt	stack 14
; Regs used in _ADC: [wreg+status,2+status,0]
	line	39
	
l7501:	
;ADC.c: 37: int result;
;ADC.c: 39: GIE = 0;
	bcf	(95/8),(95)&7
	line	40
;ADC.c: 40: ADON=1;
	movlb 1	; select bank1
	bsf	(1256/8)^080h,(1256)&7
	line	41
;ADC.c: 41: ADGO = 1;
	bsf	(1257/8)^080h,(1257)&7
	line	42
;ADC.c: 42: while(ADGO);
	goto	l1448
	
l1449:	
	
l1448:	
	btfsc	(1257/8)^080h,(1257)&7
	goto	u2551
	goto	u2550
u2551:
	goto	l1448
u2550:
	goto	l7503
	
l1450:	
	line	43
	
l7503:	
;ADC.c: 43: result = ADRES;
	movf	(155+1)^080h,w	;volatile
	clrf	(ADC@result+1)	;volatile
	addwf	(ADC@result+1)	;volatile
	movf	(155)^080h,w	;volatile
	clrf	(ADC@result)	;volatile
	addwf	(ADC@result)	;volatile

	line	45
	
l7505:	
;ADC.c: 45: ADON = 0;
	bcf	(1256/8)^080h,(1256)&7
	line	46
;ADC.c: 46: return result;
	movf	(ADC@result+1),w
	clrf	(?_ADC+1)
	addwf	(?_ADC+1)
	movf	(ADC@result),w
	clrf	(?_ADC)
	addwf	(?_ADC)

	goto	l1451
	
l7507:	
	line	47
	
l1451:	
	return
	opt stack 0
GLOBAL	__end_of_ADC
	__end_of_ADC:
;; =============== function _ADC ends ============

	signat	_ADC,90
	global	_Init_ADC
psect	text593,local,class=CODE,delta=2
global __ptext593
__ptext593:

;; *************** function _Init_ADC *****************
;; Defined at:
;;		line 17 in file "D:\SVN\Pruebav1.1\seccionador\trunk\ADC.c"
;; Parameters:    Size  Location     Type
;;		None
;; Auto vars:     Size  Location     Type
;;		None
;; Return value:  Size  Location     Type
;;		None               void
;; Registers used:
;;		wreg, status,2, status,0
;; Tracked objects:
;;		On entry : 0/0
;;		On exit  : 0/0
;;		Unchanged: 0/0
;; Data sizes:     COMMON   BANK0   BANK1   BANK2   BANK3   BANK4
;;      Params:         0       0       0       0       0       0
;;      Locals:         0       0       0       0       0       0
;;      Temps:          0       0       0       0       0       0
;;      Totals:         0       0       0       0       0       0
;;Total ram usage:        0 bytes
;; Hardware stack levels used:    1
;; This function calls:
;;		Nothing
;; This function is called by:
;;		_Inicializacion
;; This function uses a non-reentrant model
;;
psect	text593
	file	"D:\SVN\Pruebav1.1\seccionador\trunk\ADC.c"
	line	17
	global	__size_of_Init_ADC
	__size_of_Init_ADC	equ	__end_of_Init_ADC-_Init_ADC
	
_Init_ADC:	
	opt	stack 14
; Regs used in _Init_ADC: [wreg+status,2+status,0]
	line	18
	
l7495:	
;ADC.c: 18: ADCON0bits.CHS = 0b00001;
	movlb 1	; select bank1
	movf	(157)^080h,w	;volatile
	andlw	not (((1<<5)-1)<<2)
	iorlw	(01h & ((1<<5)-1))<<2
	movwf	(157)^080h	;volatile
	line	19
;ADC.c: 19: ADCON1bits.ADPREF = 0b11;
	movlw	(03h & ((1<<2)-1))<<0
	iorwf	(158)^080h,f	;volatile
	line	20
	
l7497:	
;ADC.c: 20: ADCON1bits.ADNREF = 0;
	bcf	(158)^080h,2	;volatile
	line	21
;ADC.c: 21: ADCON1bits.ADCS = 0b111;
	movlw	(07h & ((1<<3)-1))<<4
	iorwf	(158)^080h,f	;volatile
	line	22
	
l7499:	
;ADC.c: 22: ADCON1bits.ADFM = 1;
	bsf	(158)^080h,7	;volatile
	line	23
	
l1445:	
	return
	opt stack 0
GLOBAL	__end_of_Init_ADC
	__end_of_Init_ADC:
;; =============== function _Init_ADC ends ============

	signat	_Init_ADC,88
psect	text594,local,class=CODE,delta=2
global __ptext594
__ptext594:
	global	btemp
	btemp set 07Eh

	DABS	1,126,2	;btemp
	global	wtemp0
	wtemp0 set btemp
	end
